Hash contract generation and verification system

ABSTRACT

A hash contract is disclosed herein. A hash contract may be a value generated by a device using a hash function. The hash contract itself may represent a legally enforceable contract. The hash contract may be structured in a manner such that a device operated by a contracting party can transmit a legally enforceable contract over a network using a smaller file size than is possible with conventional secure transaction techniques. In addition, the manner in which the hash contract is generated allows a receiving device to verify that the contract elements of the contract are as expected and to verify an identity of a user that allegedly accepted the contract. Thus, even if a malicious user attempts to alter contract elements or perform other fraudulent activity, the receiving device can use the hash contract to identify such activity and prevent a transaction from being completed.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/059,918, entitled “HASH CONTRACT GENERATION AND VERIFICATION SYSTEM”and filed on Aug. 9, 2018, which claims the benefit under 35 U.S.C. §119(e) of U.S. Patent Application No. 62/544,573, entitled “HASHCONTRACT GENERATION AND VERIFICATION SYSTEM” and filed on Aug. 11, 2017,the entire disclosures of which are hereby incorporated by referenceherein.

BACKGROUND

Current techniques for the confidential generation, use, andtransmission of electronic contracts on a network are complicated,inefficient, and risky. For example, electronic contracts that may begenerated, used, and/or transmitted on a network include network-basedcontracts, formal contracts, implied contracts, expressed contracts,bilateral contracts, unilateral contracts, and/or the like. Thesecontracts (for example, the contract elements, including offer,acceptance, etc.) may be converted into a digital format beforetransmitted over the network. However, public networks, such as theInternet, are generally unsecured environments. For example, malicioususers can spoof receiving systems, use packet sniffing techniques,and/or other like network-based attacks to intercept transmissions ofcontracts for the purpose of altering contract elements or performingother fraudulent activity. Given the unsecure nature of public networks,it may be difficult for contracting parties to provide verifiable intentto enter into or acceptance of a contract and/or to securely transmitcontract data (for example, contract elements, the contract itself, orother important contract related information) to another party. Theseissues may, as a practical matter, limit the use of electroniccontracts.

SUMMARY

The systems, methods, devices, and items described herein each haveseveral aspects, no single one of which is solely responsible for itsdesirable attributes. Without limiting the scope of this disclosure,several non-limiting features will now be discussed briefly.

One aspect of the disclosure provides a computer-generated, verifiableHash Contract fixed on a non-transitory computer-readable medium. TheHash Contract comprises a hash code generated based on a hash function,where the hash function, when executed, creates a binding agreement,where the hash code comprises the binding agreement, and where the hashcode is structured in a manner such that a comparison of the hash codewith a second, matching hash code results in authentication of the HashContract.

The computer-generated, verifiable Hash Contract of the precedingparagraph can include any sub-combination of the following features:where the computer-generated, verifiable Hash Contract further comprisesa hash function tag appended to the hash code, where the hash functiontag comprises an identification of the hash function used to generatethe hash code such that a computing device that receives the hash codecan determine that the hash function should be used to generate thesecond hash code; where the hash code is associated with metadata thatidentifies at least one of system requirements, transaction information,a computing device that generated the hash code, or a user associatedwith the binding agreement; where the hash function comprises acryptographic hash function; where the hash function comprises one ofSHA-256 or SHA-512; where the hash code is structured in a manner suchthat content of the binding agreement remains confidential even if amalicious computing device intercepts a transmission of the hash code;where the binding agreement is a first counterpart agreement; where acomputing device is configured to authorize a transaction in response toa determination that the hash code matches the second hash codegenerated by the computing device; where a computing device isconfigured to reject a transaction in response to a determination thatthe hash code does not match the second hash code generated by thecomputing device; where a computing device is configured to determinethat fraudulent activity has occurred in response to a determinationthat the hash code does not match the second hash code generated by thecomputing device or a third hash code generated by the computing device,where the second hash code is a second Hash Contract and the third hashcode is a decline hash code; where a computing device is configured todisplay a user interface comprising a selectable link identifying thehash code, where selection of the link causes the user interface todisplay at least a portion of content of the binding agreement; wherethe hash code has a file size that is smaller than a file size of anelectronic document that comprises content of the binding agreement;where the hash code is structured in a manner such that a maliciousdevice that intercepts a transmission of the hash code cannot determineinput message elements to which a computing device applies the hashfunction to generate the hash code using the intercepted hash code;where the hash function is applied, by a computing device, to at leasttwo of first text that represents terms and conditions, second text thatrepresents consideration, a first value corresponding to a user inputthat indicates that a user accepts the terms and conditions and theconsideration, or first data corresponding to an identity of the user togenerate the hash code; where the hash function is further applied, bythe computing device, to a key generated by the computing device usingan initialization key present in an application retrieved by thecomputing device; where the key is separately generated by a secondcomputing device without all inputs used to generate the key beingcommunicated between the second computing device and the computingdevice such that the hash code generated based at least in part on thekey exhibits security features that prevent a third computing devicespoofing the computing device from recreating the hash code; and where acomputing device is configured to authenticate an identity of a userthat caused generation of the hash code in response to a determinationthat the hash code matches the second hash code generated by thecomputing device.

Another aspect of the disclosure provides a Hash Contract hash functioninput message fixed on a non-transitory computer-readable medium. Theinput message comprises a first input message element; and a secondinput message element different than the first input message element,where a combination of the first input message element and the secondinput message element represent at least two of terms and conditions ofan agreement, consideration of the agreement, an identity of a userassociated with the agreement, an intent of the user to execute theagreement, or an acceptance of the agreement, where the Hash Contracthash function, when executed based on a representation of the firstinput message element and a representation of the second input messageelement, creates a binding agreement represented as a hash code, andwhere the hash code is structured in a manner such that a comparison ofthe hash code with a second, matching hash code results inauthentication of the agreement.

The input message of the preceding paragraph can include anysub-combination of the following features: where the representation ofthe first input message element comprises a hash of the first inputmessage element; where the identity of the user comprises a hash valueresulting from a second hash function applied to a value correspondingto an input that represents the identity of the user; where the inputcomprises at least one factor used in multi-factor authentication; wherethe input message further comprises a third input message element, wherethe Hash Contract hash function, when executed based on the first,second, and third input message elements, forms the hash code; where thethird input message element comprises a key generated by a computingdevice; where the Hash Contract hash function, when executed based onthe third input message element and a hash of the first and second inputmessage elements, forms the hash code; where the key is a single-usekey; where the key is separately generated by a second computing deviceseparate from the computing device without all inputs used to generatethe key being communicated between the second computing device and thecomputing device such that the hash code generated based at least inpart on the key exhibits security features that prevent a thirdcomputing device spoofing the computing device from recreating the hashcode; where the third input message element comprises a previouslygenerated third hash code; where the Hash Contract hash function formsthe hash code when executed based on a string formed from aconcatenation of the first input message element and the second inputmessage element; where the string comprises the first input messageelement appended to an end of the second input message element; andwhere an order of the concatenation of the first input message elementand the second input message element varies per transaction, per set oftransactions, per user, per group of users, per network, per set ofnetworks, or per time period.

Another aspect of the disclosure provides a computer-implemented methodfor generating a verifiable decline hash code. The computer-implementedmethod comprises: as implemented by a computing device having one ormore processors, receiving a first hash input message element and asecond hash input message element, where the second hash input messageelement is different than the first hash input message element, where acombination of the first hash input message element and the second hashinput message element represent at least two of terms and conditions ofan agreement, consideration of the agreement, an identity of a userassociated with the agreement, an intent of the user with regards to theagreement, or a rejection of one or more elements of the agreement; andperforming a hash of a representation of the first hash input messageelement and a representation of the second hash input message element togenerate the decline hash code, where the decline hash code represents arejection of the agreement, and where the decline hash code isstructured in a manner such that a comparison of the decline hash codewith a second, matching decline hash code results in authentication ofthe decline hash code.

The computer-implemented method of the preceding paragraph can includeany sub-combination of the following features: where the representationof the first hash input message element comprises a hash of the firsthash input message element; where the identity of the user comprises ahash value resulting from a second hash function applied to a valuecorresponding to an input that represents the identity of the user;where the input comprises at least one factor used in multi-factorauthentication; where the computer-implemented method further comprisesreceiving a third hash input message, and performing a hash of thefirst, second, and third hash input message elements to generate thedecline hash code; where the third hash input message element comprisesa key generated by the computing device using an initialization keypresent in an application retrieved by the computing device; whereperforming a hash of the first, second, and third hash input messageelements further comprises performing a hash of the third hash inputmessage element and a hash of the first and second hash input messageelements to generate the decline hash code; where the key is asingle-use key; where the key is separately generated by a secondcomputing device separate from the computing device without all inputsused to generate the key being communicated between the second computingdevice and the computing device such that the decline hash codegenerated based at least in part on the key exhibits security featuresthat prevent a third computing device spoofing the computing device fromrecreating the decline hash code; where the third hash input messageelement comprises a previously generated third hash code; where thecomputer-implemented method further comprises concatenating the firsthash input message element and the second hash input message element toform a string, and performing a hash of the string to generate thedecline hash code; where the string comprises the first hash inputmessage element appended to an end of the second hash input messageelement; where an order of the concatenation of the first hash inputmessage element and the second hash input message element varies pertransaction, per set of transactions, per user, per group of users, pernetwork, per set of networks, or per time period; where a hash functiontag is appended to the decline hash code, where the hash function tagcomprises an identification of a hash function used to generate thedecline hash code such that a second computing device that receives thedecline hash code can determine that the hash function should be used togenerate the second decline hash code; where the hash function comprisesa cryptographic hash function; where the decline hash code is structuredin a manner such that content of the agreement remains confidential evenif a malicious computing device intercepts a transmission of the declinehash code; where the decline hash code is associated with devicemetadata that identifies the computing device that generated the declinehash code; where a second computing device is configured to reject atransaction in response to a determination that the decline hash codematches a third decline hash code generated by the second computingdevice; where a second computing device is configured to determine thatfraudulent activity has occurred in response to a determination that thedecline hash code does not match a third decline hash code generated bythe second computing device; where a computing device is configured todisplay a user interface comprising a selectable link identifying thedecline hash code, where selection of the link causes the user interfaceto display content of the agreement; where the decline hash code has afile size that is smaller than a file size of an electronic documentthat comprises content of the agreement; where the decline hash code isstructured in a manner such that a malicious device that intercepts atransmission of the decline hash code cannot determine the first hashinput message element or the second hash input message element using theintercepted decline hash code; and where a second computing device isconfigured to authenticate an identity of a user that caused generationof the decline hash code in response to a determination that the declinehash code matches the second decline hash code generated by the secondcomputing device.

Another aspect of the disclosure provides a computer-implemented methodfor generating a verifiable Hash Contract. The computer-implementedmethod comprises: as implemented by a computing device having one ormore processors, receiving a first hash input message element and asecond hash input message element, where the second hash input messageelement is different than the first hash input message element, where acombination of the first hash input message element and the second hashinput message element represent at least two of terms and conditions ofan agreement, consideration of the agreement, an identity of a userassociated with the agreement, an intent of the user with regards to theagreement, or an acceptance of one or more elements of the agreement;and performing a hash of a representation of the first hash inputmessage element and a representation of the second hash input messageelement to generate the Hash Contract, where the Hash Contractrepresents an execution of the agreement, and where the Hash Contract isstructured in a manner such that a comparison of the Hash Contract witha second, matching Hash Contract results in authentication of the HashContract.

The computer-implemented method of the preceding paragraph can includeany sub-combination of the following features: where the representationof the first hash input message element comprises a hash of the firsthash input message element; where the identity of the user comprises ahash value resulting from a second hash function applied to a valuecorresponding to an input that represents the identity of the user;where the input comprises at least one factor used in multi-factorauthentication; where the computer-implemented method further comprisesreceiving a third hash input message, and performing a hash of thefirst, second, and third hash input message elements to generate theHash Contract; where the third hash input message element comprises akey generated by the computing device using an initialization keypresent in an application retrieved by the computing device; whereperforming a hash of the first, second, and third hash input messageelements further comprises performing a hash of the third hash inputmessage element and a hash of the first and second hash input messageelements to generate the Hash Contract; where the key is a single-usekey; where the key is separately generated by a second computing deviceseparate from the computing device without all inputs used to generatethe key being communicated between the second computing device and thecomputing device such that the Hash Contract generated based at least inpart on the key exhibits security features that prevent a thirdcomputing device spoofing the computing device from recreating the HashContract; where the third hash input message element comprises apreviously generated third hash code; where the computer-implementedmethod further comprises concatenating the first hash input messageelement and the second hash input message element to form a string, andperforming a hash of the string to generate the Hash Contract; where thestring comprises the first hash input message element appended to an endof the second hash input message element; where an order of theconcatenation of the first hash input message element and the secondhash input message element varies per transaction, per set oftransactions, per user, per group of users, per network, per set ofnetworks, or per time period; where a hash function tag is appended tothe Hash Contract, where the hash function tag comprises anidentification of a hash function used to generate the Hash Contractsuch that a second computing device that receives the Hash Contract candetermine that the hash function should be used to generate the secondHash Contract; where the hash function comprises a cryptographic hashfunction; where the Hash Contract is structured in a manner such thatcontent of the agreement remains confidential even if a maliciouscomputing device intercepts a transmission of the Hash Contract; wherethe Hash Contract is associated with device metadata that identifies thecomputing device that generated the Hash Contract; where the agreementis a first counterpart agreement; where a second computing device isconfigured to reject a transaction in response to a determination thatthe Hash Contract matches a third Hash Contract generated by the secondcomputing device; where a second computing device is configured todetermine that fraudulent activity has occurred in response to adetermination that the Hash Contract does not match a third HashContract generated by the second computing device; where a computingdevice is configured to display a user interface comprising a selectablelink identifying the Hash Contract, where selection of the link causesthe user interface to display content of the agreement; where the HashContract has a file size that is smaller than a file size of anelectronic document that comprises content of the agreement; where theHash Contract is structured in a manner such that a malicious devicethat intercepts a transmission of the Hash Contract cannot determine thefirst hash input message element or the second hash input messageelement using the intercepted Hash Contract; where a second computingdevice is configured to authenticate an identity of a user that causedgeneration of the Hash Contract in response to a determination that theHash Contract matches the second Hash Contract generated by the secondcomputing device; and where the computer-implemented method furthercomprises encrypting the Hash Contract using at least one a private keyor a public key.

Another aspect of the disclosure provides a Hash Contract hash functionfixed on a non-transitory computer-readable medium. The Hash Contracthash function comprises computer-executable instructions that, whenexecuted based on an input message comprising different agreementelements, create a binding agreement represented as a hash code, wherethe hash code is structured in a manner such that a comparison of thehash code with a second, matching hash code results in authentication ofthe binding agreement.

The Hash Contract hash function of the preceding paragraph can includeany sub-combination of the following features: where the Hash Contracthash function is deterministic; where the Hash Contract hash function iscollision-less; where the input message cannot be derived from the hashcode; where the Hash Contract hash function is one of SHA-256 orSHA-512; and where the Hash Contract hash function is a cryptographichash function.

Another aspect of the disclosure provides a computer-implemented methodfor verifying a user identity. The computer-implemented methodcomprises: as implemented by a computing device having one or moreprocessors, receiving a first user input corresponding to an identity ofa user; receiving a second user input corresponding to the identity ofthe user; converting the first user input into a first value; convertingthe second user input into a second value; and generating a hash of arepresentation of the first value and a representation of the secondvalue to form an identity hash, where the identity hash is structured ina manner such that a comparison of the identity hash with a second,matching identity hash results in authentication of the user.

The computer-implemented method of the preceding paragraph can includeany sub-combination of the following features: where thecomputer-implemented method further comprises identifying an identifierassociated with the computing device, generating a hash of theidentifier to form a terminal hash, and generating a hash of theidentity hash and the terminal hash to form an authentication hash,where the authentication hash is structured in a manner such that acomparison of the authentication hash with a second, matchingauthentication hash results in authentication of the computing deviceand the user; where the computer-implemented method further comprisesgenerating a hash of the identity hash and a first code to form a keyedidentity hash, and generating a hash of the keyed identity hash and theterminal hash to form the authentication hash; where thecomputer-implemented method further comprises generating a hash of afirst code and the identifier to form a keyed terminal hash, andgenerating a hash of the identity hash and the keyed terminal hash toform the authentication hash; where the computer-implemented methodfurther comprises generating a hash of the identity hash and a firstcode to form a keyed identity hash, generating a hash of a second codeand the identifier to form a keyed terminal hash, and generating a hashof the keyed identity hash and the keyed terminal hash to form theauthentication hash; where the identifier associated with the computingdevice comprises at least one of a media access control (MAC) address ofthe computing device, an Internet protocol (IP) address of the computingdevice, or a peripheral identification of the computing device; wherethe computer-implemented method further comprises transmitting theauthentication hash to a second computing device over a network suchthat the second computing device uses the authentication hash as arepresentation of the identity of the user during generation of a HashContract; where the computer-implemented method further comprisesstoring the identity hash in memory of the computing device, deletingthe first value and the second value, and transmitting the identity hashto a server system over a network such that the server system uses theidentity hash to verify the identity of the user when a transactionrequest is received at a time after a current time; where thecomputer-implemented method further comprises transmitting the identityhash to a server system over a network such that the server system usesthe identity hash as a representation of the identity of the user duringgeneration of a Hash Contract; where the first user input comprises atleast one multi-factor authentication factor; where the representationof the first value comprises a hash of the first value; and where thecomputing device is one of a kiosk or an automated teller machine.

Another aspect of the disclosure provides a computer-generated,verifiable identity hash fixed on a non-transitory computer-readablemedium. The identity hash comprises a hash code generated based on ahash function applied to a user input corresponding to an identity of auser, where the hash function, when executed, creates a representationof the identity of the user, where the identity hash is structured in amanner such that a comparison of the identity hash with a second,matching identity hash results in authentication of the user.

The computer-generated, verifiable identity hash of the precedingparagraph can include any sub-combination of the following features:where a hash of the hash code and a first single-use code forms a keyedidentity hash; where a hash of the keyed identity hash and a keyedterminal hash forms an authentication hash, where the authenticationhash is structured in a manner such that a comparison of theauthentication hash with a second, matching authentication hash resultsin authentication of the user; where the authentication hash is used bya computing device as a representation of the identity of the userduring generation of a Hash Contract; where the hash code is used by acomputing device to verify the identity of the user when a transactionrequest is received at a time after a current time; where the hash codeis used by a computing device as a representation of the identity of theuser during generation of a Hash Contract; and where the user inputcomprises at least one multi-factor authentication factor.

Another aspect of the disclosure provides an input message fixed on anon-transitory computer-readable medium. The input message comprises: afirst user input corresponding to an identity of a user; and a seconduser input different than the first user input, the second user inputcorresponding to the identity of the user, where a hash function, whenexecuted based on a representation of the first user input and arepresentation of the second user input, creates an identity hash, andwhere the identity hash is structured in a manner such that a comparisonof the identity hash with a second, matching identity hash results inauthentication of the user.

The input message of the preceding paragraph can include anysub-combination of the following features: where a hash of the identityhash and a first single-use code forms a keyed identity hash; where ahash of the keyed identity hash and a keyed terminal hash forms anauthentication hash, where the authentication hash is structured in amanner such that a comparison of the authentication hash with a second,matching authentication hash results in authentication of the user;where the authentication hash is used by a computing device as arepresentation of the identity of the user to generate a Hash Contract;where the identity hash is used by a computing device to verify theidentity of the user when a transaction request is received at a timeafter a current time; where the identity hash is used by a computingdevice as a representation of the identity of the user to generate aHash Contract; where the representation of the first user inputcomprises a hash of the first user input; and where the first user inputcomprises at least one multi-factor authentication factor.

Another aspect of the disclosure provides a computer-implemented methodcomprising: as implemented by a computing device having one or moreprocessors, receiving a request to confirm that a user authorized atransaction; transmitting a transaction authorization request to a userdevice in response to receiving the request to confirm that the userauthorized the transaction; receiving, in response to the transactionauthorization request, a hash code from the user device, where the hashcode is generated by the user device based at least in part on a hash ofat least one input message element corresponding to the agreement; andcomparing the hash code with an acceptance hash code and a decline hashcode to determine whether the user authorized the transaction.

The computer-implemented method of the preceding paragraph can includeany sub-combination of the following features: where thecomputer-implemented method further comprises transmitting a responseindicating that the transaction is authorized in response to adetermination that the hash code and the acceptance hash code match;where the computer-implemented method further comprises transmitting aresponse indicating that the transaction is denied in response to adetermination that the hash code and the decline hash code match; wherethe computer-implemented method further comprises transmitting aninstruction to suspend an account associated with the user in responseto a determination that the hash code does not match the Hash Contractor the decline hash code; where the computer-implemented method furthercomprises generating a hash of the at least one input message elementcorresponding to the agreement and a value representing an acceptance ofthe agreement to generate the acceptance hash code, and generating ahash of the at least one input message element corresponding to theagreement and a value representing a rejection of the agreement togenerate the decline hash code; where the at least one input messageelement comprises a first key; where the computer-implemented methodfurther comprises receiving an identity value from the user device priorto receiving the request to confirm that the user authorized thetransaction, where the identity value is generated based on a hash of avalue corresponding to an input that identifies the user, retrieving aninitialization key associated with the user device from a local datastore, generating a master key based on the identity value and theinitialization key, generating an authentication request fortransmission to the user device, and determining a hash of theauthentication request and the master key to generate the first key;where the input that identifies the user comprises at least onemulti-factor authentication factor; where the identity value comprisesone of an identity hash or an authentication hash; where the computingdevice is operated by one of a card issuing bank, credit reportingagency, a network-based data storage provider, an electronic transactionprovider, or an electronic payment provider; where transmitting atransaction authorization request to a user device further comprisestransmitting the transaction authorization request to the user devicevia a second computing device representing a point of sale; and wheretransmitting a transaction authorization request to a user devicefurther comprises transmitting the transaction authorization requestdirectly to the user device via a network.

Another aspect of the disclosure provides a computer-implemented methodfor generating a secure hash function input message. Thecomputer-implemented method comprises: as implemented by a computingdevice having one or more processors, identifying a first hash inputmessage format corresponding to a first user; obtaining a first hashinput message element and a second hash input message elementcorresponding to a first transaction associated with the first user;combining a representation of the first hash input message element and arepresentation of the second hash input message element according to thefirst hash input message format to form a first combined element;performing a hash of the first combined element to generate a first hashcode; identifying a second hash input message format corresponding to asecond user, where the second hash input message format is differentthan the first hash input message format; obtaining a third hash inputmessage element and a fourth hash input message element corresponding toa second transaction associated with the second user; combining arepresentation of the third hash input message element and arepresentation of the fourth hash input message element according to thesecond hash input message format to form a second combined element; andperforming a hash of the second combined element to generate a secondhash code such that the first hash code is different than the secondhash code even if the first hash input message element matches the thirdhash input message element and the second hash input message elementmatches the fourth hash input message.

The computer-implemented method of the preceding paragraph can includeany sub-combination of the following features: where the first hash codeis a Hash Contract; where the first hash code is a decline hash code;where identifying a first hash input message format corresponding to thefirst user further comprises determining the first hash input messageformat based on a value of an initialization key included within anapplication running on the computing device; where thecomputer-implemented method further comprises storing the first hashinput message format in response to determining the first hash inputmessage format; where combining a representation of the first hash inputmessage element and a representation of the second hash input messageelement according to the first hash input message format furthercomprises concatenating the second hash input message element to an endof the first hash input message element to form the first combinedelement; where combining a representation of the third hash inputmessage element and a representation of the fourth hash input messageelement according to the second hash input message format furthercomprises concatenating the third hash input message element to an endof the fourth hash input message element to form the second combinedelement; and where the first hash input message and the third hash inputmessage are the same, and where the second hash input message and thefourth hash input message are the same.

Another aspect of the disclosure provides an input message fixed on anon-transitory computer-readable medium. The input message comprises: afirst input message element; and a second input message elementdifferent than the first input message element, where a combination ofthe first input message element and the second input message elementrepresent at least two of terms and conditions of an agreement,consideration of the agreement, an identity of a user associated withthe agreement, an intent of the user to execute the agreement, or anacceptance of the agreement, where a hash function, when executed basedon a representation of the first input message element and arepresentation of the second input message element combined according toa hash input message format, creates a hash code, and where differenthash input message formats cause the creation of different hash codeseven if the hash function is executed based on the same inputs.

The input message of the preceding paragraph can include anysub-combination of the following features: where the hash code is a HashContract; where the hash code is a decline hash code; where the hashinput message format is determined based on a value of an initializationkey included within an application running on a computing device thatexecutes the hash function; where the computing device stores the hashinput message format in response to determining the first hash inputmessage format; where an order of concatenating the first input messageelement and the second input message element identified by the hashinput message format varies per transaction, per set of transactions,per user, per group of users, per network, per set of networks, or pertime period; where the hash input message format indicates that thesecond input message element is concatenated to an end of the firstinput message element; and where the representation of the first inputmessage element comprises a hash of the first input message element.

Another aspect of the disclosure provides a computer-implemented methodfor seeding a security key. The computer-implemented method comprises:as implemented by a first computing device having one or moreprocessors, retrieving an application from an application distributionserver; unpacking the application to identify an initialization key,where the initialization key is included within the application by asecond computing device before the application is provided to theapplication distribution server; retrieving an identifier associatedwith the first computing device; and generating a hash of the identifierand the initialization key to form the security key, where the securitykey is stored locally by the computing device, is inaccessible to anycomputing device external to the first computing device, and can berecreated by the second computing device using the initialization keyincluded by the second computing device in the application.

The computer-implemented method of the preceding paragraph can includeany sub-combination of the following features: where thecomputer-implemented method further comprises transmitting anauthentication transaction request, where the authentication transactionrequest comprises the identifier associated with the first computingdevice, receiving a message in response to transmitting theauthentication transaction request, and generating a hash of the messageand the security key to form a first key, where the second computingdevice recreates the first key using the authentication transactionrequest and the security key recreated by the second computing devicesuch that neither the security key nor the first key are transmittedover a network; where the first key is a symmetric key; where themessage is a zero transaction; where the security key is a symmetrickey; where the security key comprises a master key; where theapplication comprises a mobile application; and where the identifierassociated with the first computing device comprises at least one of amedia access control (MAC) address of the first computing device, anInternet protocol (IP) address of the first computing device, aperipheral identification of the first computing device, an identity ofa user, or an authentication hash.

Another aspect of the disclosure provides a computer-generated,verifiable Hash Contract fixed on a non-transitory computer-readablemedium. The Hash Contract comprises a hash code generated based on ahash function, where the hash function, when executed, creates a bindingagreement, where the hash code comprises the binding agreement, andwhere the hash code is structured in a manner such that a comparison ofthe hash code with a second, matching hash code results inauthentication of the Hash Contract.

The computer-generated, verifiable Hash Contract of the precedingparagraph can include any sub-combination of the following features:where the computer-generated, verifiable Hash Contract further comprisesa hash function tag appended to the hash code, where the hash functiontag comprises an identification of the hash function used to generatethe hash code such that a computing device that receives the hash codecan determine that the hash function should be used to generate thesecond hash code; where the hash code is associated with metadata thatidentifies at least one of system requirements, transaction information,a computing device that generated the hash code, or a user associatedwith the binding agreement; where the hash function comprises acryptographic hash function; where the hash code is structured in amanner such that content of the binding agreement remains confidentialeven if a malicious computing device intercepts a transmission of thehash code; where a computing device is configured to authorize atransaction in response to a determination that the hash code matchesthe second hash code generated by the computing device; where acomputing device is configured to reject a transaction in response to adetermination that the hash code does not match the second hash codegenerated by the computing device; where a computing device isconfigured to determine that fraudulent activity has occurred inresponse to a determination that the hash code does not match the secondhash code generated by the computing device or a third hash codegenerated by the computing device, where the second hash code is asecond Hash Contract and the third hash code is a decline hash code;where a computing device is configured to display a user interfacecomprising a selectable link identifying the hash code, where selectionof the link causes the user interface to display at least a portion ofcontent of the binding agreement; where the hash code has a file sizethat is smaller than a file size of an electronic document thatcomprises content of the binding agreement; where the hash code isstructured in a manner such that a malicious device that intercepts atransmission of the hash code cannot determine input message elements towhich a computing device applies the hash function to generate the hashcode using the intercepted hash code; where the hash function isapplied, by a computing device, to at least two of first text thatrepresents terms and conditions, second text that representsconsideration, a first value corresponding to a user input thatindicates that a user accepts the terms and conditions and theconsideration, or first data corresponding to an identity of the user togenerate the hash code; and where a computing device is configured toauthenticate an identity of a user that caused generation of the hashcode in response to a determination that the hash code matches thesecond hash code generated by the computing device.

Another aspect of the disclosure provides a Hash Contract hash functioninput message fixed on a non-transitory computer-readable medium. Theinput message comprises: a first input message element; and a secondinput message element different than the first input message element,where a combination of the first input message element and the secondinput message element represent at least two of terms and conditions ofan agreement, consideration of the agreement, an identity of a userassociated with the agreement, an intent of the user to execute theagreement, or an acceptance of the agreement, where the Hash Contracthash function, when executed based on a representation of the firstinput message element and a representation of the second input messageelement, creates a binding agreement represented as a hash code, andwhere the hash code is structured in a manner such that a comparison ofthe hash code with a second, matching hash code results inauthentication of the agreement.

The input message of the preceding paragraph can include anysub-combination of the following features: where the representation ofthe first input message element comprises a hash of the first inputmessage element; and where the identity of the user comprises a hashvalue resulting from a second hash function applied to a valuecorresponding to an input that represents the identity of the user.

Another aspect of the disclosure provides a computer-implemented methodfor generating a verifiable Hash Contract. The computer-implementedmethod comprises: as implemented by a computing device having one ormore processors, receiving a first hash input message element and asecond hash input message element, where the second hash input messageelement is different than the first hash input message element, where acombination of the first hash input message element and the second hashinput message element represent at least two of terms and conditions ofan agreement, consideration of the agreement, an identity of a userassociated with the agreement, an intent of the user with regards to theagreement, or an acceptance of one or more elements of the agreement;and performing a hash of a representation of the first hash inputmessage element and a representation of the second hash input messageelement to generate the Hash Contract, where the Hash Contractrepresents an execution of the agreement, and where the Hash Contract isstructured in a manner such that a comparison of the Hash Contract witha second, matching Hash Contract results in authentication of the HashContract.

The computer-implemented method of the preceding paragraph can includeany sub-combination of the following features: where the representationof the first hash input message element comprises a hash of the firsthash input message element; where the identity of the user comprises ahash value resulting from a second hash function applied to a valuecorresponding to an input that represents the identity of the user; andwhere the computer-implemented method further comprises receiving athird hash input message, and performing a hash of the first, second,and third hash input message elements to generate the Hash Contract.

BRIEF DESCRIPTION OF DRAWINGS

Throughout the drawings, reference numbers may be re-used to indicatecorrespondence between referenced elements. The drawings are provided toillustrate example embodiments described herein and are not intended tolimit the scope of the disclosure.

FIG. 1A illustrates an exemplary block diagram depicting the inputs to ahash function that may be used to form a hash contract.

FIG. 1B illustrates an exemplary block diagram depicting the inputs tothe hash function that may be used to form a decline hash code.

FIG. 2 illustrates an exemplary block diagram depicting the transmissionof a digital signature and a verification that a document is signed.

FIG. 3A illustrates an exemplary block diagram depicting thetransmission and verification of a hash contract.

FIG. 3B illustrates an exemplary block diagram depicting differencesbetween hashing a signed contract and a hash contract.

FIG. 4 is a block diagram of an illustrative hash contract generationand verification environment.

FIG. 5A is a flow diagram depicting a hash contract generation routineillustratively implemented by a user device or a contract authenticationserver, according to one embodiment.

FIG. 5B is a flow diagram depicting a first data generation routineillustratively implemented by a user device, according to oneembodiment.

FIG. 6A is a flow diagram depicting another hash contract generationroutine illustratively implemented by a user device or a contractauthentication server, according to one embodiment.

FIG. 6B is a flow diagram depicting another hash contract generationroutine illustratively implemented by a user device or a contractauthentication server, according to one embodiment.

FIG. 7 is a flow diagram depicting another hash contract generationroutine illustratively implemented by a user device or a contractauthentication server, according to one embodiment.

FIG. 8A is a flow diagram depicting a symmetric key generation routineillustratively implemented by a user device, according to oneembodiment.

FIG. 8B is a flow diagram depicting a symmetric key generation routineillustratively implemented by a contract authentication server,according to one embodiment.

FIGS. 9A-9B are block diagrams of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment to generate a symmetric key.

FIG. 10 is a flow diagram depicting a hash contract generation routinethat uses counterpart contracts illustratively implemented by a userdevice or a contract authentication server, according to one embodiment.

FIG. 11 is a block diagram of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment to generate and transmit counterpart hash values.

FIG. 12 illustrates an exemplary block diagram depicting the generationof hash contracts using different hash input message formats.

FIG. 13A is a block diagram of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment to request authorization of a transaction out-of-band when acredit card is present.

FIG. 13B is a block diagram of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment to request authorization of a transaction out-of-band when acredit card is not present.

FIG. 14A is a block diagram of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment to request authorization of a transaction in-band when acredit card is present.

FIG. 14B is a block diagram of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment to request authorization of a transaction in-band when acredit card is not present.

FIG. 15A is a flow diagram depicting a hash code generation routineillustratively implemented by a user device, according to oneembodiment.

FIG. 15B is a flow diagram depicting a contract verification routineillustratively implemented by a contract authentication server,according to one embodiment.

FIG. 16A is a block diagram of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment when a credit card transaction is authorized.

FIG. 16B is a block diagram of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment when a credit card transaction is rejected.

FIGS. 17A-17B are block diagrams of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment when a credit card transaction is authorized.

FIG. 18A is a flow diagram depicting a keyed identity hash generationroutine illustratively implemented by a user device, according to oneembodiment.

FIG. 18B is a flow diagram depicting an authentication hash generationroutine illustratively implemented by a user device, according to oneembodiment.

FIG. 18C is a flow diagram depicting another hash contract generationroutine illustratively implemented by a user device or a contractauthentication server, according to one embodiment.

FIG. 19A is a block diagram of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment to authorize the release of a credit report.

FIG. 19B is a block diagram of the hash contract generation andverification environment of FIG. 4 illustrating the operations performedby the components of the hash contract generation and verificationenvironment to reject the release of a credit report.

FIG. 20A is a flow diagram depicting a hash contract encryption routineillustratively implemented by a user device, according to oneembodiment.

FIG. 20B is a flow diagram depicting a hash contract decryption routineillustratively implemented by a user device or a contract authenticationserver, according to one embodiment.

FIG. 21 illustrates an example user interface that may be display atransaction ledger in a window.

DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS Introduction to HashContracts and Decline Hash Codes

As described above, it may be difficult for contracting parties toprovide verifiable intent to enter into or acceptance of a contractand/or to securely transmit contract data (for example, contractelements, the contract itself, or other important contract relatedinformation) to another party given the unsecured nature of publicnetworks. Therefore, a product, method, and/or system that expands theuse of electronic contracts, that simplifies the networked contractingprocess by efficiently reducing the amount of transmitted data, and thatbinds contract elements together in a manner that allows for the securetransmission of data may be beneficial.

Accordingly, a hash contract is disclosed herein. A hash contract may bea value generated by a computing device using a hash function. The hashcontract itself may represent or constitute a legally enforceablecontract (for example, an executed agreement, a binding agreement, alegally binding agreement, etc.). As described herein, the hash contractmay be structured in a manner such that a device operated by acontracting party can transmit a legally enforceable contract over anetwork using a smaller file size than is possible with conventionaltechniques. In addition, the manner in which the hash contract isgenerated allows a receiving device to verify that the contract elementsthat form the contract are as expected and to verify an identity of auser that allegedly executed the agreement. Thus, even if a malicioususer attempts to alter contract elements or perform other fraudulentactivity, the receiving device can use the hash contract to identifysuch activity and prevent a transaction (for example, an agreement,communication, and/or movement carried out between a first party and asecond party to exchange goods or services, to exchange an item forpayment, etc.) from being completed.

FIG. 1A illustrates an exemplary block diagram depicting the inputs to ahash function 110 that may be used to form a hash contract 120. In anembodiment, a computing device stores computer-executable instructionsthat, when executed, cause the computing device to apply the hashfunction 110 to a set of inputs to form the hash contract 120. Asillustrated in FIG. 1A, the hash function 110 may be applied to contractelements to form the hash contract 120. For example, the contractelements can include terms and conditions of an offer 102, consideration104, acceptance 106, and identity 108. Optionally, the contract elementscan also include intent 112. In some cases, identity 108 may beencompassed within acceptance 106 and therefore a separate identity 108contract element may not be provided to the hash function 110.

In contract law, an offer is a manifestation of a willingness or intentto enter into a bargain with another party demonstrated by a promise,undertaking, or commitment. Thus, terms and conditions of the offer 102may be data that represents phrases, clauses, definitions, and/or otherstatements that define the terms on which a party (for example, anofferor) is willing to be bound to a promise, undertaking, orcommitment. Consideration 104 may be data that represents an exchange ofbargained-for promises between two or more contracting parties. Forexample, consideration 104 may be data that represents a monetary valueor a promise to perform or not perform an action.

The computing device that applies the hash function 110 and/or anothercomputing device can convert information representing the terms andconditions of an offer and/or the consideration into an electronicformat before the hash function 110 is applied. For example, thecomputing device that applies the hash function 110 and/or anothercomputing device can (1) scan a physical or digital document thatincludes terms and conditions of an offer and consideration; (2) applyoptical character recognition techniques to convert the scanned datainto machine-encoded text; and (3) apply natural language processingtechniques to the machine-encoded text to identify the terms andconditions of the offer 102 and the consideration 104. In particular,the computing device that applies the hash function 110 and/or anothercomputing device can train a natural language model to identify theterms and conditions of the offer 102 and/or the consideration 104,where the natural language model is trained using a set of contractsthat are each labeled to identify terms and conditions of an offerand/or consideration. Alternatively, the terms and conditions of anoffer 102 and/or the consideration 104 may already be in amachine-encoded text format (for example, because such information wasprovided as user input on a computing device).

Acceptance 106 may be data that represents a manifestation of an assentby an offeree to the terms and conditions of an offer. For example, asdescribed in greater detail below, a user (for example, an offeree) maybe prompted by a computing device to select whether the user accepts theterms and conditions of the offer 102 and/or the consideration 104. Ifthe user elects to accept the terms and conditions of the offer 102and/or the consideration 104 (for example, via the selection of a buttonor a box, via a text input indicating the acceptance, etc.), thisselection may be represented by a specific value associated with anacceptance that can be used as an input to the hash function 110 (forexample, an alphanumeric value, a hexadecimal value, etc.). Conversely,if the user elects not to accept the terms and conditions of the offer102 and/or the consideration 104 (for example, via the selection of abutton or a box, via a text input indicating a rejection of the termsand conditions of the offer 102 and/or the consideration 104, etc.),then this selection may be represented by a different value associatedwith a rejection of the terms and conditions of the offer 102 and/or theconsideration 104 (for example, a different alphanumeric value, adifferent hexadecimal value, etc.). The value representing the userelecting not to accept the terms and conditions of the offer 102 and/orthe consideration 104 can be used as an input to the hash function 110to form a decline hash code (described below with respect to FIG. 1B).

Generally, the identity of an offeree that accepts an offer can beverified by reviewing a handwritten signature or a digital signature.However, as described in greater detail below, the hash contract 120 canbe generated and verified without the use of any signature. Instead, auser (for example, an offeree) may provide an input that uniquelyrepresents an identity of the user (for example, a multi-factorauthentication factor, such as a fingerprint, a vein reading, an irisscan, face-recognition, a passcode, a single-use code, a key card, adigital certificate, a digital token, and/or any other item thatrepresents a biological characteristic of the user, something that theuser knows, or something that the user has). An input that uniquelyrepresents an identity of the user can also be referred to “personallyidentifiable information.” A computing device that receives the inputmay convert the input into a value (for example, an alphanumeric value,a hexadecimal value, etc.) and then generate a hash of the value to forman identity hash code. The identity hash code may be the identity 108input received by the hash function 110 to form the hash contract 120.

For the acceptance of an offer to be valid, the offeree must intend toaccept the offer. To capture an intent of an offeree to accept an offer,as described in greater detail below, a user (for example, offeree) maybe prompted by a computing device to select whether the user intends toaccept the terms and conditions of the offer 102 and/or theconsideration 104. If the user identifies an intention to accept theterms and conditions of the offer 102 and/or the consideration 104 (forexample, via the selection of a button or a box, via a text inputindicating the intention, etc.), this selection may be represented by aspecific value associated with an intention to accept that can be usedas an input to the hash function 110 (for example, an alphanumericvalue, a hexadecimal value, etc.). Intent 112 is optional because, forexample, an intent to accept the terms and conditions of the offer 102and/or the consideration 104 may be implied or inherent within anacceptance of the terms and conditions of the offer 102 and/or theconsideration 104 (for example, acceptance 106 may be a value that alsorepresents an intent of a user to enter into a legally enforceablecontract).

The hash function 110 may be any cryptographic or non-cryptographic hashfunction. For example, the hash function 110 may be the Fowler-Noll-Vo(FNV) hash function, the Murmurhash hash function, MD5, SHA-256,SHA-512, and/or the like. The type of hash function 110 used by acomputing device to generate the hash contract 120 may determine a sizeof the hash contract 120. For example, if the hash function 110 isSHA-256, then the hash contract 120 may be 256 bits. As another example,if the hash function 110 is SHA-512, then the hash contract 120 may be512 bits. Generally, the hash contract 120 may range in size from a fewbits to 1024 bits (or additional bits as further hash functions areintroduced). In fact, as long as a computing device uses the same hashfunction 110 to generate hash contracts 120, then each hash contract 120will have a constant size no matter the size of the hash function 110inputs (for example, the size of an electronic copy of the contractelements may not affect the size of the hash contract 120). As describedbelow, when compared with a typical electronic document that representsa contract, the small and constant size of a hash contract 120 resultsin reduced network bandwidth usage when a computing device attempts totransmit a legally enforceable contract over a network. Thus, the hashcontract 120 expands the use of digital and/or electronic contracts byallowing such contracts to be used in situations in which it isotherwise impractical to use typical electronic documents that representa contract (for example, when network bandwidth is limited, when memorystorage space is limited, and/or other situations in which computingresources are limited).

In some cases, a user may decline an offer (for example, decline toenter into a legally enforceable contract). The rejection of an offercan also be represented as a hash value, referred to herein as a declinehash code. A decline hash code may therefore represent an offer that hasbeen rejected by one or more users. As described in greater detailbelow, a decline hash code may provide several benefits. For example, adecline hash code, when analyzed in conjunction with a hash contract,can allow a computing device to determine whether a user has enteredinto a contract, whether a user has declined to enter into a contract,or whether data representing the terms and conditions and/or theconsideration of an offer have been altered and/or other fraudulentactivity has taken place without requiring that an actual document betransmitted to the computing device.

FIG. 1B illustrates an exemplary block diagram depicting the inputs tothe hash function 110 that may be used to form a decline hash code 130.In an embodiment, a computing device stores computer-executableinstructions that, when executed, cause the computing device to applythe hash function 110 to a set of inputs to form the decline hash code130. As illustrated in FIG. 1B, the hash function 110 may receive thesame inputs as described above with respect to FIG. 1A, except thatinstead of receiving acceptance 106, the hash function receives denial114 as an input in order to form the decline hash code 130.

Denial 114 may be data that represents a rejection by an offer by anofferee, a counteroffer proposed by the initial offeree, and/or aconditional acceptance of an offer by an offeree. For example, asdescribed in greater detail below, a user may be prompted by a computingdevice to select whether the user accepts the terms and conditions ofthe offer 102 and/or the consideration 104. If the user elects not toaccept the terms and conditions of the offer 102 and/or theconsideration 104 (for example, via the selection of a button or a box,via a text input indicating a rejection of the offer, a proposed counteroffer, or a conditional acceptance, etc.), this selection may berepresented by a specific value associated with a rejection of the termsand conditions of the offer 102 and/or the consideration 104 (forexample, an alphanumeric value, a hexadecimal value, etc.). This valuecan be denial 114 and be provided as an input to the hash function 110.

Thus, a computing device may implement the same process to generate thehash contract 120 and the decline hash code 130. Whether the computingdevice generates the hash contract 120 or the decline hash code 130 maydepend on whether a user elects to accept the terms and conditionsand/or consideration of an offer.

While FIG. 1A and FIG. 1B depict terms and conditions of an offer 102,consideration 104, acceptance 106, identity 108, intent 112, and/ordenial 114 as being possible inputs to the hash function 110, this isnot meant to be limiting. The hash function 110 may receive fewer oradditional inputs in forming the hash contract 120. For example, asdescribed in greater detail below, the hash function 110 may furtherreceive as input(s) a security key (for example, a symmetric key), aprevious hash contract, a previous decline hash code, and/or anycombination thereof.

Digital Signatures Versus Hash Contracts

In one example, a computing device may use asymmetric cryptography (forexample, private and public keys) to transmit a legally enforceablecontract over a network. FIG. 2 illustrates an exemplary block diagramdepicting the transmission of a digital signature 208 and a verificationthat a document 202 is signed. As illustrated in FIG. 2, the document202 may be stored on a computing device operated by a sender. Thedocument 202 may include contract elements, such as terms and conditionsof an offer and/or consideration. However, the document 202 itself maynot include any indication that the sender intends to accept or that thesender has accepted the terms and conditions and/or consideration of theoffer. Separately, a computing device operated by a receiver may have acopy of the document 202, represented as document 252. For example, thesender and receiver may have previously exchanged the document 202and/or the computing devices operated by the sender and receiver,respectively, may be able to independently recreate the document 202based on information exchanged between the two computing devices at aprevious time.

In order to indicate that the sender has accepted the terms andconditions and/or consideration of the offer, the sender may digitallysign the document 202. For example, the computing device operated by thesender may apply a hash function 204 to the document 202 to form ahashed version of the document 202. The computing device may thenencrypt the hashed version of the document 202 using a private key 206to form a digital signature 208. This encryption may be importantbecause it allows the sender computing device to securely transmit averifiable digital signature over a network that can be used todetermine whether a contract has been executed. Alternatively, thecomputing device can encrypt the document 202 using the private key 206to form the digital signature 208.

The computing device operated by the sender may then transmit thedigital signature 208 to the computing device operated by the receiver.In some embodiments, the computing device operated by the sender canalso transmit the document 202 to the computing device operated by thereceiver. The computing device operated by the receiver may then performa series of operations to verify that the sender is the entity thataccepted the document 202. For example, the computing device operated bythe receiver can apply the same hash function 204 to a different copy ofthe document 202 (for example, document 252) to form a hash code 214.

At a previous time, the sender may have provided the receiver with apublic key 212 associated with the sender. The public key 212 may bepaired with the private key 206 such that the public key 212 can be usedto decrypt data encrypted with the private key 206. Thus, the computingdevice operated by the receiver may decrypt the signature 208 using thepublic key 212 to form a hash code 216.

Accordingly, the computing device operated by the receiver has performedone operation that is identical to an operation performed by thecomputing device operated by the sender and one operation that is thereverse of an operation performed by the computing device operated bythe sender. In particular, both computing devices generated a hash usinga copy of the document 202 or 252. In addition, instead of encryptingthis hash using the private key 206, the computing device operated bythe receiver has decrypted an encrypted hash using the public key 212.Thus, the computing device operated by the receiver can verify that thesender is the entity that accepted the document 202 if the hash code 214and the hash code 216 match. The document 202 or 252 and the digitalsignature 208 together may represent a legally enforceable contract ifthe hash codes 214 and 216 do match.

Alternatively, if the sender computing device encrypts the document 202using the private key 206 to form the digital signature 208, then thereceiver computing device can decrypt the digital signature 208 usingthe public key 212, which results in a document. The receiver computingdevice can then compare the resulting document with the document 252 toverify that the sender is the entity that signed the document 202 (forexample, the sender is verified if the resulting document and thedocument 202 match).

The process described above for using digital signatures to create andtransmit legally enforceable contracts, however, has several weaknesses.For example, the process relies on the computing device operated by thesender having access to the private key 206 and the computing deviceoperated by the receiver having access to the public key 212 so that thesender computing device can securely transmit a legally enforceablecontract over a network. Hardware failures can occur (for example, adisk storage device can fail), though, which may result in one or bothkeys 206 and 212 being lost. In addition, the private key 206 and/or thepublic key 212 may become exhausted (for example, the key can no longerbe used because the key is compromised, has been used above a thresholdnumber of times, has been active above a threshold time period, etc.).Thus, one or both computing devices may have to devote computingresources (for example, disk space, processor time, central processingpower, graphical processing power, memory, network bandwidth, internalbus utilization, etc.) for managing keys such that a new key isgenerated and/or a key exchange is performed if a hardware failureoccurs or a key becomes exhausted.

As another example, the use of the private key 206 and the public key212 creates a security vulnerability that ultimately prevents anaccurate verification of an offeree's intention to accept and/oracceptance of an offer. Specifically, digitally signed documents may besusceptible to man-in-the-middle and/or spoofing attacks if the privatekey 206 and/or public key 212 becomes exposed unbeknownst to the userassociated with the private key 206. As an illustrative example, amalicious device can spoof the sender computing device, therebyproviding a digital signature 208 that the user associated with theprivate key 206 did not intend to transmit. The receiver computingdevice may then perform the operations described above and produce aresult indicating that the sender signed the document 202 because theresulting hashes match. However, this is of course not the case—thesender did not digitally sign the document 202. Thus, the sender'sintention to accept and/or acceptance of an offer has not beenaccurately verified even with the use of private and public keys 206 and212.

As another example, other techniques in addition to asymmetriccryptography can be used to record a sender's intention to accept anoffer. Specifically, a sender may be instructed to perform a series ofsteps and the performance of those steps can later be audited to showthe sender's intention to accept the offer. However, data identifyingthe sender's intention to accept the offer may not be embedded orincluded within the document 202 or digital signature 208. Thus, while aparty attempting to enforce an apparently executed document 202 may havea copy of the document 202 and digital signature 208, it may bedifficult to enforce the document 202 if, for example, the dataidentifying the sender's intention to accept the offer is lost.

As another example, a size of the document 202 and digital signature 208can vary from 10 KB to as much as 100 MB or more. The size of thedocument 202 and digital signature 208 may largely depend on the lengthof and the content included within the document 202. The larger thedocument 202, the more network bandwidth resources that may be consumedby the sender computing device in transmitting the document 202 and/orthe digital signature 208 to the receiver computing device. In addition,the larger the document 202, the more memory space that may need to beallocated by the sender and/or receiver computing device in storing thedocument 202 or 252 and digital signature 208.

As another example, in situations in which the digital signature 208 isan encrypted copy of the document 202, the contents of the document 202are not secure if the digital signature 208 is transmitted over anetwork and a malicious device that intercepts the digital signature 208has access to the public key 212 corresponding to the private key 206used to encrypt the document 202. This may be problematic if thecontents of the document 202, and thus the legally enforceable contract,are meant to be confidential.

As another example, encryption is temporary security. As an illustrativeexample, if a malicious device has sufficient time and computing power,encryption elements (for example, public keys, private keys, etc.) canbe compromised, meaning that the digital signature 208 could bereplicated by the malicious device. If the encryption elements arecompromised, then the malicious device could sign the document 202without the original owner of the encryption elements knowing.Similarly, as another illustrative example, a malicious device couldreplace a user's public key with a fake public key (for example, in apublic data repository). The malicious device could then pretend to bean authorized user device by signing the document 202 using a privatekey that corresponds with the fake public key (which may be a privatekey that is different than the private key that corresponds with theuser's public key). The device operated by the other party to theagreement would then successfully confirm that the user signed thedocument 202 because this device would retrieve the fake public keyinstead of the user's public key from the public data repository whenperforming the verification. Thus, it may be difficult to verify thatthe original owner is the entity that signed the document 202.

Aside from asymmetric cryptography, other mechanisms exist to transmitlegally enforceable contracts. However, these other mechanisms alsosuffer from weaknesses. For example, Bitcoin is a digital currency thatalso uses a form of asymmetric cryptography. Specifically, Bitcoinbalances are tied to public and private keys, which may be long stringsof alphanumeric values linked through a mathematical encryptionalgorithm used to create the keys. The public key may be analogous to abank account number and serves as an address that is publicly availableand which others can use to send Bitcoins. The private key may beanalogous to an automated teller machine (ATM) personal identificationnumber (PIN) and is used as an owner's identity to authorize Bitcointransmissions. However, because Bitcoin transactions also use a versionof public and private keys, a contract formed via a Bitcoin transactioncan suffer from the same problems as described above with respect todigital signatures. For example, if the private key is lost or exposed,an owner of the private key may lose all of his or her Bitcoins.

As another example, credit card transactions that use chip technology(for example, EUROPAY, MASTERCARD, AND VISA (EMV) standard) use bothsymmetric (for example, a master key) and asymmetric encryption toauthenticate credit cards and complete point of sale (POS) transactions.Credit card transactions in which a card is not present (CNPtransactions) use a security code present on the back of the creditcard. However, a credit card holder's handwritten signature (either onpaper or on a touch interface) technically completes a transaction (forexample, forms a legally enforceable contract). This signature, though,is not embedded or included within the data that represents thetransaction (for example, the data identifying the card holder, theamount paid, the date, etc.). Merchants typically store the signedreceipts for a period of time. However, it may be difficult to enforce atransaction if, for example, the signed receipts are lost. In fact, manynetwork-based CNP transactions and/or POS transactions do not requestthe credit card holder to provide a signature (for example, digital orhandwritten). Thus, there may be no mechanism for verifying that thecredit card holder intended to accept and/or accepted the transactionand credit card companies may merely charge higher fees to the merchantto mitigate the associated risk.

The properties of a hash contract may allow computing devices toovercome the above-referenced technical deficiencies associated withasymmetric cryptography, Bitcoins, and/or typical credit cardtransactions. FIG. 3A illustrates an exemplary block diagram depictingthe transmission and verification of a hash contract 120. As illustratedin FIG. 3A, a sender computing device may generate the hash contract 120using one or more of the inputs described above with respect to FIG. 1A.The sender computing device may then transmit the hash contract 120 to areceiver computing device.

The receiver computing device can independently generate a hash contract320 to compare with the hash contract 120 to confirm that the hashcontract 120 is unaltered and that the sender intends to accept and/orhas accepted the terms and conditions of the offer 102 and/or theconsideration 104. For example, the computing device operated by thereceiver may obtain data representing terms and conditions of an offer(for example, terms and conditions 302) and/or data representingconsideration (for example, consideration 304). The receiver may be theofferor that presented an offer to the sender at a previous time. Thus,the terms and conditions 302 may correspond to the offer presented tothe sender. Likewise, the consideration 304 may correspond to theconsideration included in the offer presented to the sender.Accordingly, the terms and conditions 302 should match the terms andconditions 102 and the consideration 304 should match the consideration104 if the sender has not altered the offer.

Acceptance 306 may be represented by a specific value associated with anacceptance (for example, an alphanumeric value, a hexadecimal value,etc.). For example, the acceptance 306 value may be the same as theacceptance 106 value. In an embodiment, the sender computing device andthe receiver computing device may have previously set the specific valueto be used in generating future hash contracts.

As described in greater detail below, the receiver computing device mayobtain identity 308 from the sender computing device at a previous time(for example, before the sender is presented with the offer) in a mannersuch that information that could be used to uniquely identify the senderremains hidden even if data is intercepted by a malicious device. Forexample, at a previous time (for example, before the sender is presentedwith the offer), the sender computing device may prompt the sender toprovide an input that uniquely represents an identity of the sender (forexample, a fingerprint, a vein reading, an iris scan, face recognition,a passcode, a single-use code, a key card, a digital certificate, adigital token, and/or any other item that represents a biologicalcharacteristic of the user, something that the user knows, or somethingthat the user has). Once the input is received, the sender computingdevice may convert the input into a value (for example, an alphanumericvalue, a hexadecimal value, etc.) and then generate a hash of the valueto form an identity hash code. The sender computing device may thentransmit the identity hash code to the receiver computing device. Thereceiver computing device can then store the identity hash code and usethe identity hash code when generating hash contracts (or decline hashcodes). Thus, the identity hash code may not be transmitted over anetwork by either device during a current transaction, therebypreventing malicious users from intercepting such data during a currenttransaction. When the sender computing device receives an offer from thereceiver computing device, then the sender computing device may againprompt the sender to provide an input that uniquely represents anidentity of the sender in order to generate the identity 108. If theprovided input corresponds to the sender and not a malicious user, thenthe identity 108 and the identity 308 should match.

The sender computing device may transmit the identity hash code to thereceiver computing device instead of, for example, the converted valuebecause it may not be possible to recreate the input(s) to a hashfunction using a hash code. However, it may be possible to recreate theinput(s) using the converted value. Thus, a malicious device that isable to intercept the identity hash code would not be able to recreatethe input(s) used to create the identity hash code and that uniquelyidentify the sender. In other words, data that could be used to stealthe sender's identity, such as the sender's fingerprint, vein reading,iris scan, face-recognition, passcode, a single-use code, a key card,digital certificate, digital token, and/or any other item thatrepresents a biological characteristic of the user, something that theuser knows, or something that the user has, would be protected even ifthe identity hash code is intercepted.

Additional inputs to the hash function 110 optionally may be provided,such as a symmetric key (for example, a secret key). As described ingreater detail below, both the sender computing device and the receivercomputing device may independently generate the same symmetric key usingan independently generated master key that may be isolated from anetwork. Given that both the sender and receiver computing devices canindependently generate the same symmetric key, it may not be necessaryfor the sender computing device or the receiver computing device totransmit the symmetric key over a network. Therefore, the likelihoodthat the symmetric key would be exposed to a malicious device is greatlydiminished. Accordingly, even if some inputs to the hash function 110are intercepted by a malicious device, the process described herein togenerate a hash contract provides advantages over asymmetriccryptography described above in that the malicious device may not beable to spoof a sender computing device and generate a hash contractthat would be accepted by the receiver computing device because at leastone input (for example, the symmetric key) is not accessible via anetwork.

Once the inputs have been obtained by the receiver computing device, thereceiver computing device can apply the hash function 110 to the inputsto form the hash contract 320. If the hash contract 320 matches the hashcontract 120, then the receiver computing device successfully verifiesthat an offer is unaltered and that the sender intends to accept and/orhas accepted the terms and conditions of the offer 102 and/or theconsideration 104. Otherwise, if the hash contract 320 and the hashcontract 120 do not match, then the receiver computing device eitherdetermines that the sender has rejected the offer or determines thatfraudulent activity has occurred (as described in greater detail below).

Thus, the receiver computing device can verify that an offer isunaltered and that the sender intends to accept and/or has accepted theterms and conditions of the offer 102 and/or the consideration 104 bycomparing two hash codes (for example, the hash contract 120 and thehash contract 320) generated without the use of asymmetric encryptionkeys. Because asymmetric encryption keys are not necessary to verify orauthenticate a legally enforceable contract using the process describedherein, the process described herein can avoid the weaknesses associatedwith private and public keys described above.

The hash contract generation and verification described herein providesadditional benefits over digital signatures, Bitcoin and/or otherdigital currency transactions, and/or typical credit card transactions.For example, the hash contract includes or embeds the terms that definean offer, the consideration, an representation of an intention by a userto accept the offer, and the acceptance itself given that these contractelements are inputs to the hash function 110 used to generate the hashcontract. Thus, issues associated with data representing a contractbeing separate from other data necessary to make the contractenforceable (for example, an intent of a party to accept an offer, asignature to show acceptance, etc.) are not applicable to hashcontracts.

Furthermore, hash contracts have a much smaller size than typicalelectronic documents that represent contracts (for example, a hashcontract is at least 1/80 the size of a typical electronic document thatrepresents a contract) and the size remains constant no matter the sizeof the data representing the hash function inputs. Thus, as comparedwith other techniques used to create, transmit, and verify a legallyenforceable contract (for example, asymmetric cryptography), a hashcontract may allow a computing device to use fewer network bandwidthresources when transmitting or receiving a legally enforceable contract.

In addition, hash contracts expand the use of electronic contractswithout preempting conventional approaches for drafting and sendingcontracts. For example, the techniques described herein with respect tohash contracts are specifically directed to the field of computer andnetwork technology. The techniques described herein allow for thegeneration and transmission of hash codes that themselves are legallyenforceable contracts and that are independently verifiable in a mannerthat overcomes deficiencies associated with asymmetric cryptography,credit card chip technology, Bitcoin and/or other digital currencytransactions, and/or the like.

Moreover, because the generated hash contract itself represents alegally enforceable contract, the contents (for example, terms andconditions, consideration, and/or other contract elements) of thelegally enforceable contract are secure and inaccessible by anunauthorized user. For example, the generated hash contract is a hashcode that can be written on a piece of paper, read aloud, or entered ina machine-readable text format on a computing device. The hash codeitself represents a legally enforceable contract for the reasonsdescribed herein. The legally enforceable contract represented by thehash contract can then be written down, read aloud, or entered in amachine-readable text format on a computing device in a smaller formfactor than the actual content that forms the legally enforceablecontract. Hash codes generated by hash functions have a unique propertyin that it is nearly impossible, if not impossible, to reverse theapplication of a hash function to identify the inputs that were used tocreate a hash code. Thus, reversing the application of the hash functionto recreate the contract elements used to form the hash contract isnearly impossible. Accordingly, unlike with conventional asymmetriccryptography, even if the hash contract is transmitted over a network,written on a piece of paper, or read aloud and intercepted by amalicious device or user, the contents of the legally enforceablecontract cannot be identified and would remain confidential.

Furthermore, a hash code generated by a hash function is not temporarysecurity like with encryption. For example, there is no mechanism bywhich a malicious device could determine the inputs to the hash functionthat were used to generate the hash code even if the malicious devicehad sufficient time and computing power. As an illustrative example, ifthe hash function is SHA-256, applying the hash function to a singleword yields a 256 bit hash code. Applying the hash function to 1000words also yields a 256 bit hash code. There is no correlation betweenthe size or quantity of inputs with the resulting hash code. Inaddition, application of the hash function to two different documentsthat have a single difference (for example, one additional space orcharacter) can result in two different hash codes that do not share anycommon sequence of characters. Thus, the hash contract described hereinprovides more permanent security as compared to asymmetric cryptography,credit card chip technology, Bitcoin and/or other digital currencytransactions, and/or the like.

FIG. 3B illustrates an exemplary block diagram depicting differencesbetween hashing a signed contract 352 and a hash contract 360. Asillustrated in FIG. 3B, a hash code of a contract 354 is formed byapplying the hash function 110 to the contract 352. For example, thecontents of the contract 352 may be in a digital format and the contentscan be hashed using the hash function 110 to form the hash code of thecontract 354. The input to the hash function 110—the contract352—represents a legally enforceable agreement. Thus, the hash code ofthe contract 354 is merely a hash of a legally enforceable agreement.

However, in the case of a hash contract, the contract element inputs tothe hash function 110 (for example, the terms and conditions 302, theconsideration 304, the acceptance 306, the identity 308, and/or thelike) individually or in combination do not represent a legallyenforceable agreement. Rather, the output of the hash function 110—thehash contract 360—represents a legally enforceable agreement. Thus, inthe case of a hash contract, application of the hash function 110 to thecontract element inputs binds the contract element inputs together tocreate a legally enforceable agreement.

While the disclosure describes the use of credit cards, this is notmeant to be limiting. For example, the techniques described herein canbe implemented with credit cards, debit cards, electronic payments,automated teller machine (ATM) deposits and/or withdrawals, digitalcurrency (for example, crypto-currency) transactions, scheduledtransactions, and/or any other type of electronic transfer of funds.Similarly, while the disclosure describes entities that can implementall or a portion of the techniques described herein as being a bank, amerchant, a credit company, or a credit reporting agency, this is notmeant to be limiting. For example, other entities can include anetwork-based data storage provider (for example, a network-based datastorage provider may authorize the transfer and/or retrieval of databased on the hash code comparisons described herein), an electronictransaction provider or user, an electronic payment provider or user,and/or the like.

In addition, while the techniques disclosed herein are described in thecontext of authorizing transactions, this is not meant to be limiting.For example, the techniques disclosed herein can be implemented toauthenticate a user's identity, to authorize the transfer and/orretrieval of data, to authorize the execution of a computer-executableinstruction (for example, to install an application update, to open anapplication, etc.), to instruct a physical object to perform an action(for example, to instruct a valve to open, to instruct a heating,ventilation, and air conditioning (HVAC) unit to heat or cool astructure, to instruct a lighting fixture to turn on off, etc.), and/orto authorize the performance of any other type of action.

The hash contract may provide additional technical benefits over typicalnetwork-based contract generation, use, and transmission techniques.Such benefits are described herein with respect to FIGS. 4 through 21.

Example Hash Contract Generation and Verification Environment

FIG. 4 is a block diagram of an illustrative hash contract generationand verification environment 400. As illustrated in FIG. 4, the hashcontract generation and verification environment 400 includes userdevices 402, an application distribution server 420, an application datastore 422, and a contract authentication server 440.

While FIG. 4 illustrates a single application distribution server 420, asingle application data store 422, and a single contract authenticationserver 440, this is not meant to be limiting. The hash contractgeneration and verification environment 400 may include any number ofapplication distribution servers 420, application data stores 422, andcontract authentication servers 440, where each application distributionserver 420 communicates with a separate application data store 422. Forexample, multiple application distribution servers 420 may be present,where each application distribution server 420 is operated by adifferent entity. As another example, any entity that provides offers tousers and/or engages in transactions with users may operate anindependent contract authentication server 440.

In addition, the hash contract generation and verification environment400 may include other devices or components that are not depicted. Forexample, intermediary networking devices, a system operated by afinancial entity, and/or the like may be present in the hash contractgeneration and verification environment 400 and may interact with any ofthe depicted devices or components.

The user devices 402, the application distribution server 420, and thecontract authentication server 440 may communicate with each other viaone or more communication networks 410. The network 410 may include anywired network, wireless network, or combination thereof. For example,the network 410 may be a personal area network, local area network, widearea network, over-the-air broadcast network (for example, for radio ortelevision), cable network, satellite network, cellular telephonenetwork, or combination thereof. As a further example, the network 410may be a publicly accessible network of linked networks, possiblyoperated by various distinct parties, such as the Internet. In someembodiments, the network 410 may be a semi-private network, such as acorporate or university intranet, or a private network. The network 410may include one or more wireless networks, such as a Global System forMobile Communications (GSM) network, a Code Division Multiple Access(CDMA) network, a Long Term Evolution (LTE) network, or any other typeof wireless network. The network 410 can use protocols and componentsfor communicating via the Internet or any of the other aforementionedtypes of networks. For example, the protocols used by the network 410may include Hypertext Transfer Protocol (HTTP), HTTP Secure (HTTPS),Message Queue Telemetry Transport (MQTT), Constrained ApplicationProtocol (CoAP), and the like. Protocols and components forcommunicating via the Internet or any of the other aforementioned typesof communication networks are well known to those skilled in the artand, thus, are not described in more detail herein.

Various example user devices 402 are shown in FIG. 4, including adesktop computer, laptop, and a mobile phone, each provided by way ofillustration. In general, the user devices 402 can be any computingdevice such as a desktop, laptop or tablet computer, personal computer,wearable computer, server, personal digital assistant (PDA), hybridPDA/mobile phone, mobile phone, electronic book reader, set-top box,voice command device, camera, digital media player, kiosk, ATM, and/orthe like. The user devices 402 may execute an application (for example,a browser, a stand-alone third party application, etc.) that generates,transmits, and/or verifies hash contracts, thereby allowing a user toaccept an offer, to verify that the terms of an offer are unaltered, toverify that another user intended to accept and/or did accept an offer,and/or to verify the identity of a user that accepted an offer. Theprocess(es) implemented by the application to generate and/or verify ahash contract are described in greater detail below with respect toFIGS. 5A through 21.

In a simple use case, a first user device 402 may communicate with asecond user device 402 to allow two users to enter into a contract. Forexample, the first user device 402 may generate the terms and conditionsand consideration that define an offer and transmit such information tothe second user device 402 via the network 410. The second user device402 may then display at least a portion of the offer and prompt a userto accept or reject the offer and provide an input representing anidentity of the user. If the user elects to accept the offer, then thesecond user device 402 may generate a first hash contract using at leastthe terms and conditions, the consideration, a value representing theacceptance, and a value based on the provided input (and possiblyadditional inputs). The second user device 402 can then transmit thefirst hash contract to the first user device 402 via the network 410. Ifthe user elects to reject the offer, then the second user device 402 maygenerate a first decline hash code using at least the terms andconditions, the consideration, a value representing a rejection of theoffer, and a value based on the provided input (and possibly additionalinputs). The second user device 402 can then transmit the first declinehash code to the first user device 402 via the network 410

Independently, the first user device 402 can generate a second hashcontract using the terms and conditions, the consideration, a valuerepresenting the acceptance, and a value representing an identity of theuser (for example, which was previously provided by the second userdevice 402) (and possibly additional inputs). The first user device 402may also generate a second decline hash code using the terms andconditions, the consideration, a value representing a rejection of theoffer, and a value representing an identity of the user (and possiblyadditional inputs). The first user device 402 can compare the datareceived from the second user device 402 (for example, the first hashcontract or the first decline hash code) with the second hash contractand/or second decline hash code. If the received data matches the secondhash contract, then the first user device 402 determines that an offerwas accepted and that a legally enforceable contract has been formed. Ifthe received data matches the second decline hash code, then the firstuser device 402 determines that the offer was rejected and that nolegally enforceable contract has been formed. Finally, if the receiveddata does not match second hash contract and the second decline hashcode, then the first user device 402 may determine that fraudulent ormalicious activity has occurred and may perform appropriate actions (forexample, terminate communications with the second user device 402,notify the second user device 402 of suspected fraudulent or maliciousactivity, etc.).

In more complex use cases, a user device 402 may communicate with theapplication distribution server 420 and/or the contract authenticationserver 440 to authorize transactions or otherwise enter into contracts.The application distribution server 420 can be a computing system (forexample, with physical hardware, such as one or more processors, memory,graphical processing power, input/output devices, an internal bus, etc.)configured to distribute applications (for example, mobile applications,desktop and/or laptop applications, other stand-alone third partyapplications, etc.) to various user devices 402. For example, upon arequest submitted by a user device 402 for an application, theapplication distribution server 420 may retrieve the requestedapplication from the application data store 422 and transmit therequested application to the user device 402.

The application distribution server 420 may be a single computingdevice, or it may include multiple distinct computing devices, such ascomputer servers, logically or physically grouped together tocollectively operate as a server system. The components of theapplication distribution server 420 can each be implemented inapplication-specific hardware (for example, a server computing devicewith one or more ASICs) such that no software is necessary, or as acombination of hardware and software. In addition, the modules andcomponents of the application distribution server 420 can be combined onone server computing device or separated individually or into groups onseveral server computing devices. The application distribution server420 can be located local to the application data store 422 and/or thecontract authentication server 440 (for example, in the same building orcomplex as the application data store 422 and/or the contractauthentication server 440) or remote from the application data store 422and/or the contract authentication server 440 (for example, located in ageographic location that is different than the location of theapplication data store 422 and/or the contract authentication server440). In some embodiments, the application distribution server 420 mayinclude additional components than illustrated in FIG. 4.

In some embodiments, the features and services provided by theapplication distribution server 420 may be implemented as web servicesconsumable via the communication network 410. In further embodiments,the application distribution server 420 is provided by one more virtualmachines implemented in a hosted computing environment. The hostedcomputing environment may include one or more rapidly provisioned andreleased computing resources, which computing resources may includecomputing, networking, and/or storage devices. A hosted computingenvironment may also be referred to as a cloud computing environment.

The application data store 422 may store one of more types ofapplications distributed by the application distribution server 420 tothe various user devices 402. In particular, the application data store422 may store applications generated by the contract authenticationserver 440 for distribution to user devices 402 (described below). Theapplication data store 422 may store multiple versions of the sameapplication. For example, as described in greater detail below, whilethe contract authentication server 440 may offer the same application tomultiple user devices 402, each application may be embedded with aunique initialization key. Thus, each application version stored in theapplication data store 422 may include a unique initialization key.Alternatively, as described in greater detail below, the applicationdata store 422 may store a single version of the same application, and aunique initialization key can be derived independently by the userdevice 402 and the contract authentication server 440 based oncommunications between the two. While the application data store 422 isdepicted in FIG. 4 as being external to the application distributionserver 420, this is not meant to be limiting. For example, not shown,the application data store 422 may located internal to the applicationdistribution server 420.

The contract authentication server 440 can be a computing system (forexample, with physical hardware, such as one or more processors, memory,graphical processing power, input/output devices, an internal bus, etc.)configured to generate applications for distribution to user devices402, generate hash contracts, generate decline hash codes, authorizetransactions based on verifying whether an offer is accepted orrejected, and/or suspend user accounts in response to detectingpotentially fraudulent or malicious activity. For example, the contractauthentication server 440 may be a single computing device, or it mayinclude multiple distinct computing devices, such as computer servers,logically or physically grouped together to collectively operate as aserver system. The components of the contract authentication server 440can each be implemented in application-specific hardware (for example, aserver computing device with one or more ASICs) such that no software isnecessary, or as a combination of hardware and software. In addition,the modules and components of the contract authentication server 440 canbe combined on one server computing device or separated individually orinto groups on several server computing devices. In some embodiments,the contract authentication server 440 may include additional or fewercomponents than illustrated in FIG. 4.

In some embodiments, the features and services provided by the contractauthentication server 440 may be implemented as web services consumablevia the communication network 410. In further embodiments, the contractauthentication server 440 is provided by one more virtual machinesimplemented in a hosted computing environment. The hosted computingenvironment (for example, the cloud computing environment) may includeone or more rapidly provisioned and released computing resources, whichcomputing resources may include computing, networking, and/or storagedevices.

The contract authentication server 440 may include various modules,components, data stores, and/or the like to provide the functionalitydescribed herein. For example, the contract authentication server 440may include an application generator 441, a request generator 442, a keyseeder 443, a hash generator 444, a hash comparator 445, a user identitydata store 446, a key data store 447, a hash data store 448, and/or acontract elements data store 449.

The application generator 441 may generate applications for storage inthe application data store 422 and eventual distribution to the userdevices 402 via the application distribution server 420. For example,the application generator 441 may generate one or more uniqueinitialization keys. As described in greater detail below, aninitialization key may be used to generate a symmetric key. Theapplication generator 441 can then insert each unique initialization keyinto the code of an application or into an application package thatincludes the code of an application, application metadata, and/or otherinformation to form unique versions of the application. The applicationgenerator 441 may insert each unique initialization key into the code ofthe application or into the application package in a manner such thatthe respective unique initialization key is inaccessible until acomputing device (for example, a user device 402) executes instructionsto install the application locally. Thus, the unique initialization keysmay be protected from unauthorized access. The application generator 441can then transmit the unique versions of the application to theapplication distribution server 420 for storage in the application datastore 422.

In an embodiment, no two user devices 402 are allowed to retrieve thesame version of an application (for example, an application with thesame initialization key). Thus, the application generator 441 maycontinue to generate unique versions of the application as applicationscontinue to be distributed by the application distribution server 420.

In addition to including the initialization keys with the applicationcode or in the application package, the application generator 441 canlocally store the unique initialization keys. For example, theapplication generator 441 can store the unique initialization keys inthe key data store 447 in association with an identification of aversion of the application. When a user device 402 retrieves aparticular version of the application from the application distributionserver 420, the application distribution server 420 can notify theapplication generator 441 of an identification of a user of the userdevice 402 or of the user device 402 itself that retrieved theapplication and the version that was retrieved. The applicationgenerator 441 may then update the entry in the key data store 447associated with the application version with an identification of theuser of the user device 402 or of the user device 402 itself.

Alternatively, the application generator 441 does not generateinitialization keys and insert such keys into the code of theapplication or into the application package. Rather, the applicationgenerator 441 transmits a single version of the application to theapplication distribution server 420 for storage in the application datastore 422. Each user device 402 can then retrieve the same version ofthe application from the application distribution server 420. However,upon the download of the application being complete and/or when a userattempts to open the application for the first time, the applicationdownloaded to the user device 402 and the application distributionserver 420 can communicate with each other and independently generatethe initialization key without having to transmit the initialization keyover the network 410. For example, the application and the applicationgenerator 441 can use the Diffie-Hellman key exchange process toindependently generate the initialization key. As an illustrativeexample, upon the download of the application being complete and/or whena user attempts to open the application for the first time, theapplication can transmit a message to the application generator 441 inwhich the message identifies a prime number p and a primitive rootmodulo of the prime number, represented as g. The application can thenselect a first secret integer value a and transmit a message to theapplication generator 441 in which the message includes a value C equalto g^(a) mod p. In response, the application generator 441 can select asecond secret integer value b and transmit a message to the applicationin which the message includes a value D equal to g^(b) mod p. Theapplication can then generate a first code by setting the first codeequal to D^(a) mod p. The application generator 441 can independentlygenerate the same first code as the application by calculating C^(b) modp (where C^(b) mod p equals D^(a) mod p).

Alternatively or in addition, the application and the applicationgenerator 441 can use the elliptic curve version of the Diffie-Hellmankey exchange process. For example, the application and the applicationgenerator 441 can use elliptic curves in place of the modulo operationsdescribed above to generate the same first code. As another example, theapplication and the application generator 441 can use a combination ofelliptic curves and modulo operations to generate the first code. Asanother example, the application and the application generator 441 canuse elliptic curves to generate the first code, modulo operations togenerate a second code, elliptic curves or modulo operations to generatea third code, and so on.

The application and the application generator 441 can each perform thecode generation process described above one or more times to eachgenerate one or more codes (for example, two codes each, three codeseach, four codes each, etc.). For example, the application and theapplication generator 441 can select different secret integer valuesand/or private keys (for example, in the elliptic curves version of theDiffie-Hellman key exchange process) each time the process is performedto generate different code(s). Once the code(s) are generated, theapplication and the application generator 441 can each independentlygenerate the initialization key given that the application and theapplication generator 441 have both generated the same code(s). Forexample, the application can hash the code(s) generated by theapplication to form the initialization key (for example, concatenate thecode(s) in a certain order and hash the concatenated code(s), where theorder of concatenation may depend on the values of a generated code,prior messages transmitted between the application and the applicationgenerator 441, etc.). As another example, the application can hash thecode(s) in a cascading manner to form the initialization key by hashingone or more codes to form a first hash code, hashing one or moreremaining codes and the first hash code to form a second hash code,hashing one or more remaining codes and the second hash code to form athird hash code, and so on. The application can repeat the hashingoperation one or more times to form the initialization key (for example,where the first hash code can become the initialization key, the secondhash code can become the initialization key, the third hash code canbecome the initialization key, etc.). Similarly, the applicationgenerator 441 can hash the code(s) generated by the applicationgenerator 441 to form the same initialization key. The applicationgenerator 441 can then store the generated initialization key in anentry in the key data store 447 with an identification of the user ofthe user device 402 or of the user device 402 itself (as thisinformation may be provided by the application).

As described herein, the user device 402 and the contract authenticationserver 440 can use the initialization key to generate a master key.Alternatively, the user device 402 and/or the contract authenticationserver 440 can use the initialization key as the master key.

The request generator 442 may request and/or receive identityinformation from user devices 402. For example, the request generator442 may transmit a request to a user device 402 for data representing anidentity of a user that operates the user device 402. The user device402 may then prompt the user to provide one or more inputs that uniquelyrepresent an identity of the user (for example, a multi-factorauthentication factor, such as a fingerprint, a vein reading, an irisscan, face-recognition, a passcode, a single-use code, a key card, adigital certificate, a digital token, and/or any other item thatrepresents a biological characteristic of the user, something that theuser knows, or something that the user has). The user device 402 mayconvert the input(s) into one or more values (for example, analphanumeric value, a hexadecimal value, a string value, etc.) and thenapply a hash function to the value(s) to generate an identity hash code(also referred to as a “hash identity code”). In general, if the userdevice 402 or the contract authentication server 440 is attempting toapply a hash function to multiple inputs, the user device 402 orcontract authentication server 440 can concatenate the inputs into asingle string and apply a hash function to the single string, where eachinput may or may not be separated with a divider (for example, anunderscore character, a number appended to the front or back of an inputthat identifies a length of the input, etc.). The user device 402 maythen transmit the identity hash code to the request generator 442 tosatisfy the request. Alternatively, the request generator 442 mayreceive the identity hash code without requesting such information (forexample, the user device 402 prompts the user to provide one or moreinputs that uniquely represent an identity of the user when theapplication retrieved from the application distribution server 420 isfirst installed, when a user makes a selection to provide the input(s),etc.). Once the identity hash code is received, the request generator442 can store the identity hash code in the user identity data store 446in an entry associated with the user operating the user device 402and/or the user device 402 itself.

The request generator 442 may also respond to requests from user devices402 for zero transactions or any other type of message that can be usedto generate a master key and/or symmetric key. For example, in responseto receiving a request for a zero transaction from a user device 402,the request generator 442 may generate the zero transaction, which mayinclude data like a date, parties to a transaction, an amount (forexample, zero), an item corresponding to the transaction, and/or thelike. The request generator 442 can then transmit the zero transactionto the user device 402 that submitted the request.

The key seeder 443 may generate a master key and one or more symmetrickeys. For example, the key seeder 443 can receive an identifier from therequest generator 442 that was included in a zero transaction request.The identifier may be an address of the user device 402 (for example, amedia access control (MAC) address, an Internet protocol (IP) address,etc.) that requested the zero transaction or another value that uniquelyidentifies the user device 402. The key seeder 443 may then retrieve,from the key data store 447, the unique initialization key associatedwith the identifier. The key seeder 443 can generate the master key byapplying a hash function to the identifier and the unique initializationkey. The key seeder 443 may then store the master key in the key datastore 447 in the entry associated with the identifier.

The key seeder 443 may generate one or more symmetric keys using themaster key. For example, the key seeder 443 can receive a copy of a zerotransaction transmitted to a user device 402 and apply a hash functionto the master key and at least a portion of the data included in thezero transaction to form a symmetric key. The key seeder 443 may thenstore the symmetric key in the key data store 447 in an entry associatedwith the identifier (for example, the data that identifies a user and/oruser device 402). If another zero transaction request and/or an actualtransaction request is received by the contract authentication server440, then the key seeder 443 may apply a hash function to the master keyand at least a portion of the data included in the zero transaction orthe actual transaction to form a new symmetric key that replaces theprevious symmetric key. Thus, the key seeder 443 can periodically reseta symmetric key by generating a new symmetric key. The key seeder 443may store the new symmetric key in the key data store 447 in place ofthe previous symmetric key.

Optionally, the key seeder 443 can stretch the generated master keyand/or the one or more symmetric keys. For example, the key seeder 443may add bits to a master key and/or a symmetric key (for example, at thebeginning, middle, or end of the bits of the key and/or interleaved withbits of the key) to mask the actual master and/or symmetric key.Optionally, the key seeder 443 can salt the generated master key and/orthe one or more symmetric keys. For example, the key seeder 443 canapply a function to a master key and/or a symmetric key that modifiesthe value of the respective key. Before the master key or symmetric keyis used as described herein, the key seeder 443 or another component ofthe contract authentication server 440 may perform the reverse operation(for example, undo the application of the function) to re-derive themaster key and/or symmetric key for use.

The hash generator 444 may generate hash contracts and/or decline hashcodes. The hash generator 444 may retrieve contract elements stored inthe contract elements data store 449, a symmetric key stored in the keydata store 447, an identity hash code stored in the user identity datastore 446, and/or a previous hash contract or decline hash code storedin the hash data store 448 to be used in generating the hash contractsand/or decline hash codes. The hash generator 444 may store a generatedhash contract and/or decline hash code in the hash data store 448 forfuture use.

The hash comparator 445 may compare hash values received from userdevices 402 (for example, hash contracts or decline hash codes) withhash contracts and/or decline hash codes generated by the hash generator444. Based on the results of the comparison, the hash comparator 445 maydetermine whether a user accepted an offer, whether a user rejected anoffer, or whether potential fraudulent or malicious activity hasoccurred. If potential fraudulent or malicious activity has occurred,the hash comparator 445 may suspend an account associated with the userdevice 402, notify the user device 402 of such potential activity,and/or the like.

The user identity data store 446 stores identity hash codes and storeseach identity hash code in an entry associated with the user and/or userdevice 402 (for example, an identifier that identifies the user device402) that provided the respective identity hash code. The user identitydata store 446 may be located internal to the contract authenticationserver 440. In other embodiments, not shown, the user identity datastore 446 is located external to the contract authentication server 440,such as on a separate system or server.

The key data store 447 stores unique initialization keys, master keys,and/or symmetric keys and stores each key in an entry associated with auser and/or user device 402 (for example, an identifier that identifiesthe user device 402). The key data store 447 may be located internal tothe contract authentication server 440. In other embodiments, not shown,the key data store 447 is located external to the contractauthentication server 440, such as on a separate system or server. Notethat additional security measures may be applied to the key data store447 such that components or devices external to the contractauthentication server 440 may not have access to the key data store 447.For example, the key data store 447 may be encrypted with a keyaccessible to certain components within the contract authenticationserver 440 (and therefore may be decrypted each time the key data store447 is accessed).

The hash data store 448 stores hash contracts and/or decline hash codesand stores each hash value in an entry associated with a user and/oruser device 402 (for example, an identifier that identifies the userdevice 402). The hash data store 448 may be located internal to thecontract authentication server 440. In other embodiments, not shown, thehash data store 448 is located external to the contract authenticationserver 440, such as on a separate system or server.

The contract elements data store 449 stores data representing contractelements (for example, terms and conditions of an offer, consideration,etc. in machine-encoded text format) and stores each contract element inan entry associated with a user and/or user device 402 (for example, anidentifier that identifies the user device 402). The contract elementsdata store 449 may be located internal to the contract authenticationserver 440. In other embodiments, not shown, the contract elements datastore 449 is located external to the contract authentication server 440,such as on a separate system or server.

Example Hash Contract Generation Routines

FIG. 5A is a flow diagram depicting a hash contract generation routine500 illustratively implemented by a user device or a contractauthentication server, according to one embodiment. As an example, theuser device 402 (for example, the application retrieved from theapplication distribution server 420) or the contract authenticationserver 440 of FIG. 4 can be configured to execute the hash contractgeneration routine 500. The hash contract generation routine 500 beginsat block 502.

At block 504, first text that represents terms and conditions of anoffer is obtained. For example, the user device 402 or the contractauthentication server 440 may (1) scan a physical or digital documentthat includes terms and conditions of an offer; (2) apply opticalcharacter recognition techniques to convert the scanned data intomachine-encoded text; and (3) apply natural language processingtechniques to the machine-encoded text to identify the terms andconditions of the offer. In particular, the user device 402, thecontract authentication server 440, and/or another computing device cantrain a natural language model to identify the terms and conditions ofthe offer, where the natural language model is trained using a set ofcontracts that are each labeled to identify terms and conditions of anoffer. The first text may be the machine-encoded text identified as theterms and conditions of the offer by the natural language processingtechniques. As another example, the user device 402 or the contractauthentication server 440 may receive a digital document that alreadyincludes machine-encoded text. Thus, the user device 402 or the contractauthentication server 440 can apply natural language processingtechniques to the machine-encoded text to identify the terms andconditions of the offer, where the first text may be the machine-encodedtext identified as the terms and conditions of the offer by the naturallanguage processing techniques. As another example, the user device 402or the contract authentication server 440 may receive the first textfrom another computing device (for example, via the network 410). Asanother example, the user device 402 or the contract authenticationserver 440 may receive the first text via user input.

At block 506, second text that represents consideration of an offer isobtained. For example, the user device 402 or the contractauthentication server 440 may (1) scan a physical or digital documentthat includes consideration of an offer; (2) apply optical characterrecognition techniques to convert the scanned data into machine-encodedtext; and (3) apply natural language processing techniques to themachine-encoded text to identify the consideration of the offer. Inparticular, the user device 402, the contract authentication server 440,and/or another computing device can train a natural language model toidentify the consideration of the offer, where the natural languagemodel is trained using a set of contracts that are each labeled toidentify consideration of an offer. The second text may be themachine-encoded text identified as the consideration of the offer by thenatural language processing techniques. As another example, the userdevice 402 or the contract authentication server 440 may receive adigital document that already includes machine-encoded text. Thus, theuser device 402 or the contract authentication server 440 can applynatural language processing techniques to the machine-encoded text toidentify the consideration of the offer, where the second text may bethe machine-encoded text identified as the consideration of the offer bythe natural language processing techniques. As another example, the userdevice 402 or the contract authentication server 440 may receive thesecond text from another computing device (for example, via the network410). As another example, the user device 402 or the contractauthentication server 440 may receive the second text via user input.

At block 508, a first value corresponding to a user input that indicatesthat a user accepts the terms and conditions and consideration isobtained. For example, the user device 402 may display, in a userinterface generated by an application retrieved from the applicationdistribution server 420, information identifying a transaction (forexample, terms and conditions, consideration, a merchant, a date, alocation, etc.) and prompt a user to identify whether the user acceptsor rejects the transaction. If the user provides an input (for example,a selection of a button or box in the user interface, text thatindicates acceptance, a voice command, a touch gesture, a nod or otherfacial movement detected by a camera, etc.) that corresponds with anacceptance of the transaction, then this input may result in the userdevice 402 obtaining the first value. This input may also cause the userdevice 402 to initiate the application of a hash function to thecontract element inputs (if, for example, the other contract elementinputs have been obtained). As another example, the contactauthentication server 440 may associate the first value with anacceptance of a transaction and may associate a different value with arejection of a transaction. As described in greater detail below, thecontract authentication server 440 may be generating a hash contract fortransaction verification purposes and can therefore obtain the firstvalue.

At block 510, first data based on a second value representing anidentity of the user is obtained. For example, the user device 402 mayprompt a user, in a user interface generated by the applicationretrieved from the application distribution server 420, to provide oneor more inputs that uniquely represent the user. The prompt may bepresented to the user when the user device 402 receives a transactionauthorization request. For example, such input can include at least onemulti-factor authentication factor. Such factors can include afingerprint, a vein reading, an iris scan, face-recognition, a passcode,a single-use code, a key card, a digital certificate, a digital token,and/or any other item that represents a biological characteristic of theuser, something that the user knows, or something that the user has. Thecomponent(s) that receive the input(s) (for example, a fingerprintreader, a vein reader, an iris scanner, a camera, a key card reader,etc.) or the user device 402 can then convert the input(s) into a secondvalue, which may be an alphanumeric value, a hexadecimal value, a stringvalue, and/or the like. For example, the component(s) or the user device402 can retrieve mapping information that indicates how to convert theinput(s) into the second value. If more than one input is provided, theuser device 402 can concatenate the resulting second values to form asingle second value in a manner as described herein. The user device 402may then apply a hash function to the second value to form the firstdata. Reception of the input(s) and formation of the first data maycause the user device 402 to initiate the application of a hash functionto the contract element inputs (if, for example, the other contractelement inputs have been obtained). Thus, the first data may be a hashcode, also referred to herein as an identity hash code.

The contract authentication server 440 may obtain the first data fromthe user device 402. For example, when the application running on theuser device 402 is first installed or when a user is otherwise settingup the application, the user device 402 may generate the first data andtransmit the first data to the contract authentication server 440. Thecontract authentication server 440 may then store the first data in theuser identity data store 446 and retrieve the first data when generatingthe hash contract. Note that the user device 402 may not store the firstdata. Rather, each time a transaction authorization request is received,the user device 402 may prompt the user to provide one or more inputsthat uniquely represent the user and the user device 402 may perform theprocess described herein to generate a new copy of the first data. Thus,if an unauthorized or malicious user attempts to authorize a transactionand cannot provide the one or more inputs that uniquely represent theuser, then the new copy of the first data generated by the user device402 would not match the first data originally received by the contractauthentication server 440 and the transaction authorization wouldultimately fail (for example, because the hash contract generated by theuser device 402 would not match the hash contract generated by thecontract authentication server 440 given that different inputs would beused by each device in generating the hash contracts).

At block 512, a hash of the first text, the second text, the firstvalue, and the first data is generated to form a hash contract. Forexample, the user device 402 or contract authentication server 440 mayconcatenate the first text, the second text, the first value, and thefirst data to form a single string in a manner as described herein andapply a hash function to the single string to form the hash contract.The first text, the second text, the first value, and the first data maybe concatenated in any order. For example, the user device 402 orcontract authentication server 440 can append the first data to the endof the first value, append the combined first data and first value tothe end of the second text, and append the combined first data, firstvalue, and second text to the end of the first text to form the singlestring. As another example, the user device 402 or contractauthentication server 440 can append the first value to the end of thefirst data, append the combined first value and first data to the end ofthe first text, and append the combined first value, first data, andfirst text to the end of the second text to form the single string. Theuser device 402 may generate the hash in response to obtaining some orall necessary contract element inputs. For example, the user device 402may generate the hash in response to the user providing an input toaccept or reject a transaction and/or in response to obtaining the firstdata (for example, in response to the user providing one or more inputsthat uniquely represent the user). The contract authentication server440 may generate the hash in response to requesting the user device 402to accept or decline a transaction and after some or all necessarycontract element inputs are obtained. Once the hash contract is formed,the hash contract generation routine 500 is complete, as shown at block514.

While FIG. 5A depicts blocks 504, 506, 508, and 510 in a specific order,this is merely an illustrative example and is not meant to be limiting.Blocks 504, 506, 508, and/or 510 can be completed in any order.

In addition, while FIG. 5A depicts a hash function being applied to thefirst text, the second text, the first value, and the first data inorder to form the hash contract, this is merely an illustrative exampleand is not meant to be limiting. In particular, any of the first text,the second text, the first value, and the first data can be hashedindividually or in combination with other contract elements (forexample, where the contract elements are the first text, the secondtext, the first value, and the first data) before the hash function thatgenerates the hash contract is applied. The resulting hash value(s) canthen be hashed with any contract elements that have not yet beenincluded as an input to a hash function to form another hash value (forexample, if at least one contract element has not been used as an inputto a hash function) or the hash contract (for example, if all contractelements have been used as an input to a hash function). If another hashvalue is formed, then this hash value can be hashed with any contractelements that have not yet been included as an input to a hash functionto form another hash value or the hash contract, and this process cancontinue until all contract elements have been used as an input to ahash function.

In one illustrative example, the user device 402 or contractauthentication server 440 can apply a hash function to the first text toform a first hash value and then apply a hash function to the first hashvalue, the second text, the first value, and the first data to form thehash contract. As another illustrative example, the user device 402 orcontract authentication server 440 can apply a hash function to thefirst text and the second text to form a first hash value and then applya hash function to the first hash value, the first value, and the firstdata to form the hash contract. As another illustrative example, theuser device 402 or contract authentication server 440 can (1) apply afirst hash function to the first text to form a first hash value and asecond hash function to the second text to form a second hash value; (2)apply a third hash function to the first hash value, the second hashvalue, and the first data to form a third hash value; and (3) apply afourth hash function to the third hash value and the first value to formthe hash contract.

FIG. 5B is a flow diagram depicting a first data generation routine 520illustratively implemented by a user device, according to oneembodiment. As an example, the user device 402 of FIG. 4 (for example,the application retrieved from the application distribution server 420)can be configured to execute the first data generation routine 520. Thefirst data generation routine 520 may be performed when the applicationretrieved from the application distribution server 420 is firstinitialized, when a user initiates an action to enter input(s) uniquelyrepresenting the user, and/or when the user device 402 is attempting togenerate a hash contract to authorize a transaction (for example, inresponse to reaching block 510 when executing the hash contractgeneration routine 500) or a decline hash code to decline a transaction.The first data generation routine 520 begins at block 522.

At block 524, a first user input corresponding to an identity of theuser is obtained. For example, the first user input may be afingerprint, a vein reading, an iris scan, face-recognition, a passcode,a single-use code, a key card, a digital certificate, a digital token,and/or any other item that represents a biological characteristic of theuser, something that the user knows, or something that the user has.

At block 526, a second user input corresponding to an identity of theuser is obtained. For example, the second user input may be afingerprint, a vein reading, an iris scan, face-recognition, a passcode,a single-use code, a key card, a digital certificate, a digital token,and/or any other item that represents a biological characteristic of theuser, something that the user knows, or something that the user has. Thefirst user input and the second user input may be different.

At block 528, the first user input is converted into a first value. Forexample, the user device 402 can convert the first user input into afirst value, which may be an alphanumeric value, a hexadecimal value, astring value, and/or the like. The user device 402 can retrieve mappinginformation that indicates how to convert the first user input into thefirst value.

At block 530, the second user input is converted into a second value.For example, the user device 402 can convert the second user input intoa second value, which may be an alphanumeric value, a hexadecimal value,a string value, and/or the like. The user device 402 can retrievemapping information that indicates how to convert the second user inputinto the second value.

At block 532, a hash of the first value and the second value isgenerated to form the first data (for example, an identity hash code)that is obtained at block 510 of FIG. 5A. For example, the user device402 can concatenate the first value and the second value in any order toform a string value and then apply a hash function to the string valueto form the first data. Once the first data is formed, the first datageneration routine 520 is complete, as shown at block 534.

While FIG. 5B depicts blocks 524, 526, 528, and 530 in a specific order,this is merely an illustrative example and is not meant to be limiting.For example, block 524 occurs before block 528 and block 526 occursbefore block 530, but blocks 524, 526, 528, and 530 can otherwise becompleted in any order.

In addition, blocks 526 and 530 may be optional. For example, the userdevice 402 can generate the first data by applying a hash function tothe first value only. Similarly, additional user inputs that uniquelyrepresent the user may be obtained and converted into values to be usedas inputs to the hash function that forms the first data.

Finally, while FIG. 5B depicts a hash function being applied to thefirst value and the second value, this is merely an illustrative exampleand is not meant to be limiting. In particular, any of the first valueand the second value can be hashed individually or in combination withother values derived from other user inputs (for example, other userinputs in addition to the first and second user inputs) before the hashfunction that generates the first data is applied. The resulting hashvalue(s) can then be hashed with any values that have not yet beenincluded as an input to a hash function to form another hash value (forexample, if at least one value has not been used as an input to a hashfunction) or the first data (for example, if all values have been usedas an input to a hash function). If another hash value is formed, thenthis hash value can be hashed with any values that have not yet beenincluded as an input to a hash function to form another hash value orthe first data, and this process can continue until all values have beenused as an input to a hash function. In an illustrative example, theuser device 402 can apply a hash function to the first value to form afirst hash value and then apply a hash function to the first hash valueand the second value to form the first data.

FIG. 6A is a flow diagram depicting another hash contract generationroutine 600 illustratively implemented by a user device or a contractauthentication server, according to one embodiment. As an example, theuser device 402 (for example, the application retrieved from theapplication distribution server 420) or the contract authenticationserver 440 of FIG. 4 can be configured to execute the hash contractgeneration routine 600. The hash contract generation routine 600 mayinclude using a symmetric key (for example, a secret key that may or maynot be a single-use key) to prevent a malicious device from successfullyspoofing the user device 402 and authorizing a transaction unbeknownstto the user even if the malicious device is able to intercept someinputs to the hash function used to generate a hash contract. The hashcontract generation routine 600 begins at block 602.

At block 604, first text that represents terms and conditions of anoffer is obtained. For example, the user device 402 or the contractauthentication server 440 may (1) scan a physical or digital documentthat includes terms and conditions of an offer; (2) apply opticalcharacter recognition techniques to convert the scanned data intomachine-encoded text; and (3) apply natural language processingtechniques to the machine-encoded text to identify the terms andconditions of the offer. In particular, the user device 402, thecontract authentication server 440, and/or another computing device cantrain a natural language model to identify the terms and conditions ofthe offer, where the natural language model is trained using a set ofcontracts that are each labeled to identify terms and conditions of anoffer. The first text may be the machine-encoded text identified as theterms and conditions of the offer by the natural language processingtechniques. As another example, the user device 402 or the contractauthentication server 440 may receive a digital document that alreadyincludes machine-encoded text. Thus, the user device 402 or the contractauthentication server 440 can apply natural language processingtechniques to the machine-encoded text to identify the terms andconditions of the offer, where the first text may be the machine-encodedtext identified as the terms and conditions of the offer by the naturallanguage processing techniques. As another example, the user device 402or the contract authentication server 440 may receive the first textfrom another computing device (for example, via the network 410). Asanother example, the user device 402 or the contract authenticationserver 440 may receive the first text via user input.

At block 606, second text that represents consideration of an offer isobtained. For example, the user device 402 or the contractauthentication server 440 may (1) scan a physical or digital documentthat includes consideration of an offer; (2) apply optical characterrecognition techniques to convert the scanned data into machine-encodedtext; and (3) apply natural language processing techniques to themachine-encoded text to identify the consideration of the offer. Inparticular, the user device 402, the contract authentication server 440,and/or another computing device can train a natural language model toidentify the consideration of the offer, where the natural languagemodel is trained using a set of contracts that are each labeled toidentify consideration of an offer. The second text may be themachine-encoded text identified as the consideration of the offer by thenatural language processing techniques. As another example, the userdevice 402 or the contract authentication server 440 may receive adigital document that already includes machine-encoded text. Thus, theuser device 402 or the contract authentication server 440 can applynatural language processing techniques to the machine-encoded text toidentify the consideration of the offer, where the second text may bethe machine-encoded text identified as the consideration of the offer bythe natural language processing techniques. As another example, the userdevice 402 or the contract authentication server 440 may receive thesecond text from another computing device (for example, via the network410). As another example, the user device 402 or the contractauthentication server 440 may receive the second text via user input.

At block 608, a first value corresponding to a user input that indicatesthat a user accepts the terms and conditions and consideration isobtained. For example, the user device 402 may display, in a userinterface generated by an application retrieved from the applicationdistribution server 420, information identifying a transaction (forexample, terms and conditions, consideration, a merchant, a date, alocation, etc.) and prompt a user to identify whether the user acceptsor rejects the transaction. If the user provides an input (for example,a selection of a button or box in the user interface, text thatindicates acceptance, a voice command, a touch gesture, a nod or otherfacial movement detected by a camera, etc.) that corresponds with anacceptance of the transaction, then this input may result in the userdevice 402 obtaining the first value. As another example, the contactauthentication server 440 may associate the first value with anacceptance of a transaction and may associate a different value with arejection of a transaction. As described in greater detail below, thecontract authentication server 440 may be generating a hash contract fortransaction verification purposes and can therefore obtain the firstvalue.

At block 610, first data based on a second value representing anidentity of the user is obtained. For example, the user device 402 mayprompt a user, in a user interface generated by the applicationretrieved from the application distribution server 420, to provide oneor more inputs that uniquely represent the user (for example, one ormore multi-factor authentication factors). For example, such input caninclude a fingerprint, a vein reading, an iris scan, face-recognition, apasscode, a single-use code, a key card, a digital certificate, adigital token, and/or any other item that represents a biologicalcharacteristic of the user, something that the user knows, or somethingthat the user has. The component(s) that receive the input(s) (forexample, a fingerprint reader, a vein reader, an iris scanner, a camera,a key card reader, etc.) or the user device 402 can then convert theinput(s) into a second value, which may be an alphanumeric value, ahexadecimal value, a string value, and/or the like. For example, thecomponent(s) or the user device 402 can retrieve mapping informationthat indicates how to convert the input(s) into the second value. Ifmore than one input is provided, the user device 402 can concatenate theresulting second values to form a single second value in a manner asdescribed herein. The user device 402 may then apply a hash function tothe second value to form the first data. Thus, the first data may be ahash code, also referred to herein as an identity hash code.

The contract authentication server 440 may obtain the first data fromthe user device 402. For example, when the application running on theuser device 402 is first installed or when a user initially provides theinput(s) uniquely representing the user, the user device 402 maygenerate the first data and transmit the first data to the contractauthentication server 440. The contract authentication server 440 maythen store the first data in the user identity data store 446 andretrieve the first data when generating the hash contract.

At block 612, a symmetric key is retrieved. The user device 402 maygenerate the symmetric key based on a master key that is derived using aunique initialization key embedded in an application retrieved from theapplication distribution server 420. The contract authentication server440 may have generated the unique initialization key that is embedded inthe application retrieved from the application distribution server 420and executed by the user device 402. Thus, the contract authenticationserver 440 may generate the symmetric key based on a master key that isderived from the generated unique initialization key. The retrievedsymmetric key may be a single-use key (for example, a new symmetric keyis generated each time the user device 402 receives a transactionauthorization request and/or each time the contract authenticationserver 440 verifies whether a transaction was authorized or declined).Additional details regarding the generation of the symmetric key aredescribed below with respect to FIGS. 8A-8B.

At block 614, a hash of the first text, the second text, the firstvalue, the first data, and the symmetric key is generated to form a hashcontract. For example, the user device 402 or contract authenticationserver 440 may concatenate the first text, the second text, the firstvalue, the first data, and the symmetric key to form a single string ina manner as described herein and apply a hash function to the singlestring to form the hash contract. The first text, the second text, thefirst value, the first data, and the symmetric key may be concatenatedin any order. Once the hash contract is formed, the hash contractgeneration routine 600 is complete, as shown at block 616.

While FIG. 6A depicts blocks 604, 606, 608, 610, and 612 in a specificorder, this is merely an illustrative example and is not meant to belimiting. Blocks 604, 606, 608, 610, and 612 can be completed in anyorder.

In addition, while FIG. 6A depicts a hash function being applied to thefirst text, the second text, the first value, the first data, and thesymmetric key in order to form the hash contract, this is merely anillustrative example and is not meant to be limiting. In particular, anyof the first text, the second text, the first value, the first data, andthe symmetric key can be hashed individually or in combination withother contract elements (for example, where the contract elements arethe first text, the second text, the first value, the first data, andthe symmetric key) before the hash function that generates the hashcontract is applied. The resulting hash value(s) can then be hashed withany contract elements that have not yet been included as an input to ahash function to form another hash value (for example, if at least onecontract element has not been used as an input to a hash function) orthe hash contract (for example, if all contract elements have been usedas an input to a hash function). If another hash value is formed, thenthis hash value can be hashed with any contract elements that have notyet been included as an input to a hash function to form another hashvalue or the hash contract, and this process can continue until allcontract elements have been used as an input to a hash function. FIG. 6Bdescribed below depicts one illustrative example.

FIG. 6B is a flow diagram depicting another hash contract generationroutine 650 illustratively implemented by a user device or a contractauthentication server, according to one embodiment. As an example, theuser device 402 (for example, the application retrieved from theapplication distribution server 420) or the contract authenticationserver 440 of FIG. 4 can be configured to execute the hash contractgeneration routine 650. The hash contract generation routine 650 mayinclude using a symmetric key (for example, a secret key that may or maynot be a single-use key) to prevent a malicious device from successfullyspoofing the user device 402 and authorizing a transaction unbeknownstto the user even if the malicious device is able to intercept someinputs to the hash function used to generate a hash contract. The hashcontract generation routine 650 begins at block 652.

At block 654, first text that represents terms and conditions of anoffer is obtained. For example, the user device 402 or the contractauthentication server 440 may (1) scan a physical or digital documentthat includes terms and conditions of an offer; (2) apply opticalcharacter recognition techniques to convert the scanned data intomachine-encoded text; and (3) apply natural language processingtechniques to the machine-encoded text to identify the terms andconditions of the offer. In particular, the user device 402, thecontract authentication server 440, and/or another computing device cantrain a natural language model to identify the terms and conditions ofthe offer, where the natural language model is trained using a set ofcontracts that are each labeled to identify terms and conditions of anoffer. The first text may be the machine-encoded text identified as theterms and conditions of the offer by the natural language processingtechniques. As another example, the user device 402 or the contractauthentication server 440 may receive a digital document that alreadyincludes machine-encoded text. Thus, the user device 402 or the contractauthentication server 440 can apply natural language processingtechniques to the machine-encoded text to identify the terms andconditions of the offer, where the first text may be the machine-encodedtext identified as the terms and conditions of the offer by the naturallanguage processing techniques. As another example, the user device 402or the contract authentication server 440 may receive the first textfrom another computing device (for example, via the network 410). Asanother example, the user device 402 or the contract authenticationserver 440 may receive the first text via user input.

At block 656, second text that represents consideration of an offer isobtained. For example, the user device 402 or the contractauthentication server 440 may (1) scan a physical or digital documentthat includes consideration of an offer; (2) apply optical characterrecognition techniques to convert the scanned data into machine-encodedtext; and (3) apply natural language processing techniques to themachine-encoded text to identify the consideration of the offer. Inparticular, the user device 402, the contract authentication server 440,and/or another computing device can train a natural language model toidentify the consideration of the offer, where the natural languagemodel is trained using a set of contracts that are each labeled toidentify consideration of an offer. The second text may be themachine-encoded text identified as the consideration of the offer by thenatural language processing techniques. As another example, the userdevice 402 or the contract authentication server 440 may receive adigital document that already includes machine-encoded text. Thus, theuser device 402 or the contract authentication server 440 can applynatural language processing techniques to the machine-encoded text toidentify the consideration of the offer, where the second text may bethe machine-encoded text identified as the consideration of the offer bythe natural language processing techniques. As another example, the userdevice 402 or the contract authentication server 440 may receive thesecond text from another computing device (for example, via the network410). As another example, the user device 402 or the contractauthentication server 440 may receive the second text via user input.

At block 658, a first value corresponding to a user input that indicatesthat a user accepts the terms and conditions and consideration isobtained. For example, the user device 402 may display, in a userinterface generated by an application retrieved from the applicationdistribution server 420, information identifying a transaction (forexample, terms and conditions, consideration, a merchant, a date, alocation, etc.) and prompt a user to identify whether the user acceptsor rejects the transaction. If the user provides an input (for example,a selection of a button or box in the user interface, text thatindicates acceptance, a voice command, a touch gesture, a nod or otherfacial movement detected by a camera, etc.) that corresponds with anacceptance of the transaction, then this input may result in the userdevice 402 obtaining the first value. As another example, the contactauthentication server 440 may associate the first value with anacceptance of a transaction and may associate a different value with arejection of a transaction. As described in greater detail below, thecontract authentication server 440 may be generating a hash contract fortransaction verification purposes and can therefore obtain the firstvalue.

At block 660, first data based on a second value representing anidentity of the user is obtained. For example, the user device 402 mayprompt a user, in a user interface generated by the applicationretrieved from the application distribution server 420, to provide oneor more inputs that uniquely represent the user (for example, one ormore multi-factor authentication factors). For example, such input caninclude a fingerprint, a vein reading, an iris scan, face-recognition, apasscode, a single-use code, a key card, a digital certificate, adigital token, and/or any other item that represents a biologicalcharacteristic of the user, something that the user knows, or somethingthat the user has. The component(s) that receive the input(s) (forexample, a fingerprint reader, a vein reader, an iris scanner, a camera,a key card reader, etc.) or the user device 402 can then convert theinput(s) into a second value, which may be an alphanumeric value, ahexadecimal value, a string value, and/or the like. For example, thecomponent(s) or the user device 402 can retrieve mapping informationthat indicates how to convert the input(s) into the second value. Ifmore than one input is provided, the user device 402 can concatenate theresulting second values to form a single second value in a manner asdescribed herein. The user device 402 may then apply a hash function tothe second value to form the first data. Thus, the first data may be ahash code, also referred to herein as an identity hash code.

The contract authentication server 440 may obtain the first data fromthe user device 402. For example, when the application running on theuser device 402 is first installed or when a user initially provides theinput(s) uniquely representing the user, the user device 402 maygenerate the first data and transmit the first data to the contractauthentication server 440. The contract authentication server 440 maythen store the first data in the user identity data store 446 andretrieve the first data when generating the hash contract.

At block 662, a hash of the first text, the second text, the firstvalue, and the first data is generated to form a first hash. Forexample, the user device 402 or contract authentication server 440 mayconcatenate the first text, the second text, the first value, and thefirst data to form a single string in a manner as described herein andapply a hash function to the single string to form the first hash. Thefirst text, the second text, the first value, and the first data may beconcatenated in any order.

At block 664, a symmetric key is retrieved. The user device 402 maygenerate the symmetric key based on a master key that is derived using aunique initialization key embedded in an application retrieved from theapplication distribution server 420. The contract authentication server440 may have generated the unique initialization key that is embedded inthe application retrieved from the application distribution server 420and executed by the user device 402. Thus, the contract authenticationserver 440 may generate the symmetric key based on a master key that isderived from the generated unique initialization key. The retrievedsymmetric key may be a single-use key (for example, a new symmetric keyis generated each time the user device 402 receives a transactionauthorization request and/or each time the contract authenticationserver 440 verifies whether a transaction was authorized or declined).Additional details regarding the generation of the symmetric key aredescribed below with respect to FIGS. 8A-8B.

At block 666, a hash of the first hash and the symmetric key isgenerated to form a hash contract. For example, the user device 402 orcontract authentication server 440 may concatenate the first hash andthe symmetric key to form a single string in a manner as describedherein and apply a hash function to the single string to form the hashcontract. The first text and the symmetric key may be concatenated inany order. Once the hash contract is formed, the hash contractgeneration routine 650 is complete, as shown at block 668.

While FIG. 6B depicts blocks 654, 656, 658, 660, and 664 in a specificorder, this is merely an illustrative example and is not meant to belimiting. Blocks 654, 656, 658, 660, and 664 can be completed in anyorder.

FIG. 7 is a flow diagram depicting another hash contract generationroutine 700 illustratively implemented by a user device or a contractauthentication server, according to one embodiment. As an example, theuser device 402 (for example, the application retrieved from theapplication distribution server 420) or the contract authenticationserver 440 of FIG. 4 can be configured to execute the hash contractgeneration routine 700. The hash contract generation routine 700 mayinclude using a symmetric key (for example, a secret key that may or maynot be a single-use key) and a previously generated hash code to preventa malicious device from successfully spoofing the user device 402 andauthorizing a transaction unbeknownst to the user even if the maliciousdevice is able to intercept some inputs to the hash function used togenerate a hash contract. The hash contract generation routine 700begins at block 702.

At block 704, first text that represents terms and conditions of anoffer is obtained. For example, the user device 402 or the contractauthentication server 440 may (1) scan a physical or digital documentthat includes terms and conditions of an offer; (2) apply opticalcharacter recognition techniques to convert the scanned data intomachine-encoded text; and (3) apply natural language processingtechniques to the machine-encoded text to identify the terms andconditions of the offer. In particular, the user device 402, thecontract authentication server 440, and/or another computing device cantrain a natural language model to identify the terms and conditions ofthe offer, where the natural language model is trained using a set ofcontracts that are each labeled to identify terms and conditions of anoffer. The first text may be the machine-encoded text identified as theterms and conditions of the offer by the natural language processingtechniques. As another example, the user device 402 or the contractauthentication server 440 may receive a digital document that alreadyincludes machine-encoded text. Thus, the user device 402 or the contractauthentication server 440 can apply natural language processingtechniques to the machine-encoded text to identify the terms andconditions of the offer, where the first text may be the machine-encodedtext identified as the terms and conditions of the offer by the naturallanguage processing techniques. As another example, the user device 402or the contract authentication server 440 may receive the first textfrom another computing device (for example, via the network 410). Asanother example, the user device 402 or the contract authenticationserver 440 may receive the first text via user input.

At block 706, second text that represents consideration of an offer isobtained. For example, the user device 402 or the contractauthentication server 440 may (1) scan a physical or digital documentthat includes consideration of an offer; (2) apply optical characterrecognition techniques to convert the scanned data into machine-encodedtext; and (3) apply natural language processing techniques to themachine-encoded text to identify the consideration of the offer. Inparticular, the user device 402, the contract authentication server 440,and/or another computing device can train a natural language model toidentify the consideration of the offer, where the natural languagemodel is trained using a set of contracts that are each labeled toidentify consideration of an offer. The second text may be themachine-encoded text identified as the consideration of the offer by thenatural language processing techniques. As another example, the userdevice 402 or the contract authentication server 440 may receive adigital document that already includes machine-encoded text. Thus, theuser device 402 or the contract authentication server 440 can applynatural language processing techniques to the machine-encoded text toidentify the consideration of the offer, where the second text may bethe machine-encoded text identified as the consideration of the offer bythe natural language processing techniques. As another example, the userdevice 402 or the contract authentication server 440 may receive thesecond text from another computing device (for example, via the network410). As another example, the user device 402 or the contractauthentication server 440 may receive the second text via user input.

At block 708, a first value corresponding to a user input that indicatesthat a user accepts the terms and conditions and consideration isobtained. For example, the user device 402 may display, in a userinterface generated by an application retrieved from the applicationdistribution server 420, information identifying a transaction (forexample, terms and conditions, consideration, a merchant, a date, alocation, etc.) and prompt a user to identify whether the user acceptsor rejects the transaction. If the user provides an input (for example,a selection of a button or box in the user interface, text thatindicates acceptance, a voice command, a touch gesture, a nod or otherfacial movement detected by a camera, etc.) that corresponds with anacceptance of the transaction, then this input may result in the userdevice 402 obtaining the first value. As another example, the contactauthentication server 440 may associate the first value with anacceptance of a transaction and may associate a different value with arejection of a transaction. As described in greater detail below, thecontract authentication server 440 may be generating a hash contract fortransaction verification purposes and can therefore obtain the firstvalue.

At block 710, first data based on a second value representing anidentity of the user is obtained. For example, the user device 402 mayprompt a user, in a user interface generated by the applicationretrieved from the application distribution server 420, to provide oneor more inputs that uniquely represent the user (for example, one ormore multi-factor authentication factors). For example, such input caninclude a fingerprint, a vein reading, an iris scan, face-recognition, apasscode, a single-use code, a key card, a digital certificate, adigital token, and/or any other item that represents a biologicalcharacteristic of the user, something that the user knows, or somethingthat the user has. The component(s) that receive the input(s) (forexample, a fingerprint reader, a vein reader, an iris scanner, a camera,a key card reader, etc.) or the user device 402 can then convert theinput(s) into a second value, which may be an alphanumeric value, ahexadecimal value, a string value, and/or the like. For example, thecomponent(s) or the user device 402 can retrieve mapping informationthat indicates how to convert the input(s) into the second value. Ifmore than one input is provided, the user device 402 can concatenate theresulting second values to form a single second value in a manner asdescribed herein. The user device 402 may then apply a hash function tothe second value to form the first data. Thus, the first data may be ahash code, also referred to herein as an identity hash code.

The contract authentication server 440 may obtain the first data fromthe user device 402. For example, when the application running on theuser device 402 is first installed or when a user initially provides theinput(s) uniquely representing the user, the user device 402 maygenerate the first data and transmit the first data to the contractauthentication server 440. The contract authentication server 440 maythen store the first data in the user identity data store 446 andretrieve the first data when generating the hash contract.

At block 712, a previous hash code is retrieved. For example, thecontract authentication server 440 may have previously requested theuser device 402 to authorize a transaction. If the user device 402authorized the transaction (for example, via the generation of a hashcontract), then this previously generated hash contract is retrieved.However, if the user device 402 declined the transaction (for example,via the generation of a decline hash code), then this previouslygenerated decline hash code is retrieved. In some embodiments, theprevious hash code is the last hash code that was generated. Thus, ifthe user device 402 authorized a transaction the last time the contractauthentication server 440 requested the user device 402 to authorize atransaction, then a hash contract is retrieved. Otherwise, if the userdevice 402 declined a transaction the last time the contractauthentication server 440 requested the user device 402 to authorize atransaction, then a decline hash code is retrieved.

At block 714, a symmetric key is retrieved. The user device 402 maygenerate the symmetric key based on a master key that is derived using aunique initialization key embedded in an application retrieved from theapplication distribution server 420. The contract authentication server440 may have generated the unique initialization key that is embedded inthe application retrieved from the application distribution server 420and executed by the user device 402. Thus, the contract authenticationserver 440 may generate the symmetric key based on a master key that isderived from the generated unique initialization key. The retrievedsymmetric key may be a single-use key (for example, a new symmetric keyis generated each time the user device 402 receives a transactionauthorization request and/or each time the contract authenticationserver 440 verifies whether a transaction was authorized or declined).Additional details regarding the generation of the symmetric key aredescribed below with respect to FIGS. 8A-8B.

At block 716, a hash of the first text, the second text, the firstvalue, the first data, the previous hash code, and the symmetric key isgenerated to form a hash contract. For example, the user device 402 orcontract authentication server 440 may concatenate the first text, thesecond text, the first value, the first data, the previous hash code,and the symmetric key to form a single string in a manner as describedherein and apply a hash function to the single string to form the hashcontract. The first text, the second text, the first value, the firstdata, the previous hash code, and the symmetric key may be concatenatedin any order. Once the hash contract is formed, the hash contractgeneration routine 700 is complete, as shown at block 718.

While FIG. 7 depicts blocks 704, 706, 708, 710, 712, and 714 in aspecific order, this is merely an illustrative example and is not meantto be limiting. Blocks 704, 706, 708, 710, 712, and 714 can be completedin any order.

In addition, while FIG. 7 depicts a hash function being applied to thefirst text, the second text, the first value, the first data, theprevious hash code, and the symmetric key in order to form the hashcontract, this is merely an illustrative example and is not meant to belimiting. In particular, any of the first text, the second text, thefirst value, the first data, the previous hash code, and the symmetrickey can be hashed individually or in combination with other contractelements (for example, where the contract elements are the first text,the second text, the first value, the first data, the previous hashcode, and the symmetric key) before the hash function that generates thehash contract is applied. The resulting hash value(s) can then be hashedwith any contract elements that have not yet been included as an inputto a hash function to form another hash value (for example, if at leastone contract element has not been used as an input to a hash function)or the hash contract (for example, if all contract elements have beenused as an input to a hash function). If another hash value is formed,then this hash value can be hashed with any contract elements that havenot yet been included as an input to a hash function to form anotherhash value or the hash contract, and this process can continue until allcontract elements have been used as an input to a hash function.

FIG. 8A is a flow diagram depicting a symmetric key generation routine800 illustratively implemented by a user device, according to oneembodiment. As an example, the user device 402 of FIG. 4 (for example,the application retrieved from the application distribution server 420)can be configured to execute the symmetric key generation routine 800.The symmetric key generation routine 800 begins at block 802.

At block 804, a mobile application is retrieved. For example, the mobileapplication may be retrieved from the application distribution server420 via the application data store 422. Alternatively, a desktop orlaptop application may be retrieved.

At block 806, the mobile application is unpacked to identify aninitialization key. For example, each version of the mobile applicationstored in the application data store 422 may include a uniqueinitialization key. The user device 402 may unpack the mobileapplication when installing the mobile application after the mobileapplication is retrieved. During the unpacking process, the installerrunning on the user device 402 may obtain the initialization key andstore the initialization key locally in a secure location (for example,in an encrypted folder in the user device 402 file system). Theinitialization key may be stored such that the initialization key is notaccessible via the network 410.

At block 808, an identifier associated with the user device isretrieved. For example, the identifier may be a MAC address of the userdevice 402, an IP address of the user device 402, a peripheralidentification of the user device 402, a name of the user device 402, oranother value that can uniquely identify the user device 402.Alternatively or in addition, an identifier associated with a user isretrieved. For example, an identifier associated with the user may be aname, an address, a unique identifier (for example, social securitynumber, a value assigned to the user, or any other unique number), afingerprint, a vein reading, an iris scan, face-recognition, a passcode,a single-use code, a key card, a digital certificate, a digital token,and/or another value that can uniquely identifier the user (for example,another multi-factor authentication factor).

At block 810, a hash of the identifier and the initialization key isgenerated to generate a master key. For example, the user device 402 canretrieve the initialization key from the secure location, concatenatethe identifier and the initialization key in any order to form a stringvalue, and then apply a hash function to the string value to generatethe master key. The user device 402 may then store the master keylocally in a secure location (for example, in an encrypted folder in theuser device 402 file system). The master key may be stored such that themaster key is not accessible via the network 410.

At block 812, an authentication transaction is requested. For example,the authentication transaction may be a zero transaction or any othertype of message that allows the user device 402 to form a master keyand/or symmetric key (for example, a zero transaction, a transactionwith a non-zero amount, a symmetric key generation message, a master keygeneration message, and/or the like). As used herein, a zero transactionmay be a transaction in which an amount is zero. The user device 402 maytransmit the request to the contract authentication server 440 (forexample, the request generator 442). The request may include anidentifier associated with the user device 402 (or an identifierassociated with a user, a hash of an identifier associated with the userdevice 402, a hash of an identifier associated with a user, and/or acombination thereof) or the identifier may be transmitted to thecontract authentication server 440 separately from the request.

At block 814, the authentication transaction is received. Theauthentication transaction may include transaction metadata, such as atleast one of a date, an identification of an entity (for example, amerchant, a name of the entity that operates the contract authenticationserver 440, a name of the user associated with the user device 402,etc.), an amount (for example, zero or non-zero), a location at whichthe transaction was initiated, an item corresponding to the transaction,terms and conditions, and/or the like.

At block 816, a hash of the authentication transaction and the masterkey is generated to form the symmetric key. For example, the user device402 may concatenate the master key and at least a portion of thetransaction metadata included in the authentication transaction to forma single string in a manner as described herein and apply a hashfunction to the single string to form the symmetric key. The master keyand the transaction metadata may be concatenated in any order. Once thesymmetric key is formed, the symmetric key generation routine 800 iscomplete, as shown at block 818.

The user device 402 may execute the symmetric key generation routine 800to generate the initial symmetric key. If the user device 402 uses asingle-use symmetric key such that a new symmetric key is generated eachtime a request for an authorization of a transaction is received, thenthe user device 402 may repeat blocks 812, 814, and 816 each time a newrequest for an authorization of a transaction is received. Thus, theuser device 402 may generate the master key once and use the same masterkey in generating each new symmetric key.

FIG. 8B is a flow diagram depicting a symmetric key generation routine850 illustratively implemented by a contract authentication server,according to one embodiment. As an example, the contract authenticationserver 440 of FIG. 4 can be configured to execute the symmetric keygeneration routine 850. The symmetric key generation routine 850 beginsat block 852.

At block 854, an initialization key is generated. For example, asequential number generator, a random number generator, a pseudorandomnumber generator, a previous initialization key, and/or the like can beused to generate the initialization key.

At block 856, the initialization key is stored in a mobile application.For example, the contract authentication server 440 (for example, theapplication generator 441) can insert the initialization key into thecode of an application or into an application package that includes thecode of an application, application metadata, and/or other informationto form a unique version of the application. The contract authenticationserver 440 may the initialization key into the code of the applicationor into the application package in a manner such that the initializationkey is inaccessible until a computing device (for example, a user device402) executes instructions to install the application locally. Thus, theinitialization key may be protected from unauthorized access. Thecontract authentication server 440 can then transmit the unique versionof the application to the application distribution server 420 forstorage in the application data store 422. The initialization key mayfurther be stored in the key data store 447 in an entry associated thatwill be associated with the user device 402 once the user device 402retrieves the unique version of the application from the applicationdistribution server 420.

At block 858, an authentication transaction request and an identifierassociated with a user device is received from the user device. Forexample, the authentication transaction request and the identifier maybe transmitted by the user device 402 after the user device 402 hasretrieved the unique version of the application from the applicationdistribution server 420 and installed the unique version of theapplication locally. The identifier may be a MAC address of the userdevice 402, an IP address of the user device 402, a peripheralidentification of the user device 402, or another value that canuniquely identify the user device 402. Alternatively or in addition, anidentifier associated with a user is received. For example, anidentifier associated with the user may be a name, an address, a uniqueidentifier (for example, social security number, a value assigned to theuser, or any other unique number), a fingerprint, a vein reading, aniris scan, face-recognition, a passcode, a single-use code, a key card,a digital certificate, a digital token, and/or another value that canuniquely identifier the user. The identifier associated with the usermay be transmitted by the user device 402 after the user device 402 hasretrieved the unique version of the application from the applicationdistribution server 420 and installed the unique version of theapplication locally.

At block 860, a hash of the identifier and the initialization key isgenerated to generate a master key. For example, the contractauthentication server 440 can retrieve the initialization key from thekey data store 447, concatenate the identifier and the initializationkey in any order to form a string value, and then apply a hash functionto the string value to generate the master key. The contractauthentication server 447 may then store the master key in the key datastore 447 in the same entry as the initialization key. The master keymay be stored such that the master key is not accessible via the network410.

At block 862, the authentication transaction is transmitted to the userdevice. For example, the authentication transaction may be any messagethat allows the user device 402 to form a master key and/or symmetrickey (for example, a zero transaction, a transaction with a non-zeroamount, a symmetric key generation message, a master key generationmessage, and/or the like). The authentication transaction may includetransaction metadata, such as at least one of a date, an identificationof one or more entities (for example, a merchant, a name of the entitythat operates the contract authentication server 440, a name of the userassociated with the user device 402, etc.), an amount (for example, zeroor non-zero), a location at which the transaction was initiated, an itemcorresponding to the transaction, terms and conditions, and/or the like.

While block 862 is depicted in FIG. 8B as occurring after block 860,this is not meant to be limiting. For example, block 862 may beperformed before block 860.

At block 864, a hash of the authentication transaction and the masterkey is generated to form the symmetric key. For example, the contractauthentication server 440 may concatenate the master key and at least aportion of the transaction metadata included in the authenticationtransaction to form a single string in a manner as described herein andapply a hash function to the single string to form the symmetric key.The master key and the transaction metadata may be concatenated in anyorder. Once the symmetric key is formed, the symmetric key generationroutine 850 is complete, as shown at block 866.

The contract authentication server 440 may execute the symmetric keygeneration routine 850 to generate the initial symmetric key. If thecontract authentication server 440 uses a single-use symmetric key suchthat a new symmetric key is generated each time a request for anauthorization of a transaction is transmitted, then the contractauthentication server 440 may repeat blocks 858, 862, and 864 each timea new request for an authorization of a transaction is transmitted.Thus, the contract authentication server 440 may generate the master keyonce and use the same master key in generating each new symmetric key.

The routines 500, 520, 600, 650, 700, 800, and 850 depicted in FIGS. 5Athrough 8B may also be executed by the user device 402 and/or thecontract authentication server 440 when such devices generate a declinehash code. However, instead of obtaining a first value corresponding toa user input that indicates that a user accepts the terms and conditionsand consideration, the user device 402 and/or contract authenticationserver 440 may instead obtain a rejection value corresponding to a userinput that indicates that a user rejects the terms and conditions and/orconsideration. Thus, the first value corresponding to an acceptance maybe replaced with the rejection value in the routines 500, 600, 650, 700,800, and 850.

Example Block Diagram for Generating a Symmetric Key

FIGS. 9A-9B are block diagrams of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 to generate a symmetric key. Forsimplicity, FIGS. 9A-9B depict the generation of a symmetric key via theuse of a zero transaction. However, this is not meant to be limiting.For example, any type of authentication transaction described herein maybe substituted for the zero transaction in order to generate thesymmetric key.

As illustrated in FIG. 9A, the application generator 441 generates anapplication with an initialization key at (1). For example, theapplication generator 441 can generate the initialization key and insertthe initialization key into the code of the application or into anapplication package that includes the code of the application. Theapplication generator 441 can then transmit the generated application tothe application distribution server 420 for storage at (2). Before,during, or after transmitting the generated application to theapplication distribution server 420, the application generator 441 cantransmit the initialization key to the key seeder 443 at (3).Alternatively or in addition, the application generator 441 can storethe initialization key in the key data store 447.

At a later time, the user device 402 may retrieve the application fromthe application distribution server 420 at (4). Once the user device 402has retrieved the application, the user device 402 may unpack theapplication and identify the initialization key inserted into the codeof the application or into the application package at (5). For example,the user device 402 may unpack the application when installing theapplication. During the unpacking process, the installer running on theuser device 402 may obtain the initialization key and store theinitialization key locally in a secure location (for example, in anencrypted folder in the user device 402 file system).

The following steps performed by the user device 402 may specifically beperformed by the retrieved application running on the user device 402.The user device 402 can then retrieve an identifier associated with theuser device at (6) and/or an identifier associated with a user (notshown). For example, the identifier may be a MAC address of the userdevice 402, an IP address of the user device 402, a peripheralidentification of the user device 402, or another value that canuniquely identify the user device 402 and/or the user. The user device402 can then generate a master key using the identifier and theinitialization key at (7). For example, the user device 402 can apply ahash function to the identifier and the initialization key to generatethe master key. The user device 402 may discard the initialization keyafter the master key is generated so that the master key cannot berecreated.

The user device 402 may also use the initialization key and/or theidentifier to establish a hash input message format at (8). For example,the hash input message format may determine the order in which contractelements are concatenated before a hash function is applied to theconcatenated value to form a hash contract. The hash input messageformat may be dependent on the values of the initialization key and/orthe identifier. In particular, a set of rules (for example, defined bycode included in the application) may define how the user device 402analyzes the initialization key and/or the identifier to set the hashinput message format. As an illustrative example, the set of rules maydictate that (1) if the first two bits of the initialization key and thefirst two bits of the identifier are each “0,” then the terms andconditions are the first hash function input, consideration is thesecond hash function input, acceptance or denial is the third hashfunction input, and identity is the fourth hash function input; (2) ifthe first two bits of the initialization key are “00” and the first twobits of the identifier are “01,” then the terms and conditions are thesecond hash function input, consideration is the first hash functioninput, acceptance or denial is the third hash function input, andidentity is the fourth hash function input; (3) if the first two bits ofthe initialization key are “00” and the first two bits of the identifierare “10,” then the terms and conditions are the second hash functioninput, consideration is the first hash function input, acceptance ordenial is the fourth hash function input, and identity is the third hashfunction input; and so on.

Once the hash input message format is set, the user device 402 cantransmit a zero transaction request to the request generator 442 at (9).In an embodiment, the zero transaction request includes an identifierassociated with the user device 402. In response to receiving therequest, the request generator 442 can transmit the identifier to thekey seeder 443 at (10).

The key seeder 443 can generate a master key using the identifier andthe initialization key at (11). For example, the key seeder 443 canapply a hash function to the identifier and the initialization key togenerate the master key. The key seeder 443 may discard theinitialization key after the master key is generated so that the masterkey cannot be recreated. The key seeder 443 can further establish a hashinput message format at (12) to be used by the contract authenticationserver 440 for transactions associated with the user of the user device402. The key seeder 443 may use the same set of rules as the user device402 in establishing the hash input message format. By using the same setof rules as the user device 402, the key seeder 443 may ensure thataccurate transaction authorization verifications can be performed.

Before, during, or after the key seeder 443 generates the master key andestablishes the hash input message format, the request generator 442generates and transmits the zero transaction to the user device 402 at(13). The key seeder 443 may also transmit the zero transaction to thekey seeder 443 at (14). The zero transaction may include transactionmetadata, such as a date, an identification of one or more entities (forexample, a merchant, a name of the entity that operates the contractauthentication server 440, a name of the user associated with the userdevice 402, etc.), an amount (for example, zero), a location at whichthe transaction was initiated, terms and conditions, an itemcorresponding to the transaction, and/or the like.

As illustrated in FIG. 9B, the key seeder 443 generates a serversymmetric key using the zero transaction and the master key at (15). Forexample, the key seeder 443 may apply a hash function to the zerotransaction and the master key to generate the server symmetric key. Thekey seeder 443 may then store the server symmetric key in the key datastore 447 at (16).

Before, during, or after the key seeder 443 generate and stores theserver symmetric key, the user device 402 generates a user devicesymmetric key using the zero transaction and the master key at (17). Forexample, the user device 402 may apply a hash function to the zerotransaction and the master key to generate the user device symmetrickey. The user device 402 may then generate a first hash contract usingthe user device symmetric key at (18). For example, the user device 402can apply a hash function to the user device symmetric key, datarepresenting an acceptance, and/or other contract elements of the zerotransaction (for example, terms and conditions, consideration, identity,etc.) to generate the first hash contract. The user device 402 thentransmits the first hash contract to the hash comparator 445 at (19)for, for example, finalizing the symmetric key seeding process, asdescribed below.

Before, during, or after the user device 402 generates the user devicesymmetric key and/or the first hash contract, the hash generator 444retrieves the server symmetric key from the key data store 447 at (20).The hash generator 444 then generates a second hash contract using theserver symmetric key at (21). For example, the hash generator 444 canapply a hash function to the server symmetric key, data representing anacceptance, and/or other contract elements of the zero transaction (forexample, terms and conditions, consideration, identity, etc.) togenerate the second hash contract. The hash generator 444 then transmitsthe second hash contract to the hash comparator 445 at (22).

The hash comparator 445 compares the first and second hash contracts tofinalize the symmetric key seeding process at (23). For example, thehash comparator 445 determines whether the first hash contract matchesthe second hash contract. If the first and second hash contracts match,then the hash comparator 445 determines that the symmetric keygeneration process, as performed by the user device 402 and the contactauthentication server 420, was executed correctly and/or that thecontract authentication server 440 can begin sending transactionauthorization requests to the user device 402. Otherwise, if the firstand second hash contracts do not match, then the hash comparator 445determines that an error occurred. In this case, the hash comparator 445may instruct other components of the contract authentication server 440and/or the user device 402 to repeat some or all of the steps depictedin FIGS. 9A-9B.

Counterpart Contracts

FIG. 10 is a flow diagram depicting a hash contract generation routine1000 that uses counterpart contracts illustratively implemented by auser device or a contract authentication server, according to oneembodiment. As an example, the user device 402 or the contractauthentication server 440 of FIG. 4 can be configured to execute thehash contract generation routine 1000. The hash contract generationroutine 1000 begins at block 1002.

At block 1004, a first counterpart hash value is obtained. Generally, acounterpart contract may include a clause that allows parties to anagreement to execute separate copies of the agreement. The counterpartcontracts, individually, when each counterpart is signed, may form asingle legally enforceable contract. Thus, in a situation in which acontract is executed by one party and a counterpart clause is includedin the terms and conditions, then the user device 402 or contractauthentication server 440 may apply a hash function to data representingacceptance by one party and/or other contract elements to form the firstcounterpart hash value. In other words, the user device 402 or contractauthentication server 440 may perform the same operations used togenerate a hash contract in generating the first counterpart hash value.

At block 1006, a second counterpart hash value is obtained. For example,a different copy of the contract may be executed by a second party. Theuser device 402 or contract authentication server 440 may apply a hashfunction to data representing acceptance by the second party and/orother contract elements to form the second counterpart hash value.

At block 1008, a hash of the first counterpart hash value and the secondcounterpart hash value is generated to form a hash contract. Forexample, the user device 402 or contract authentication server 440 mayconcatenate the first counterpart hash value and the second counterparthash value to form a single string in a manner as described herein andapply a hash function to the single string to form the hash contract.The first counterpart hash value and the second counterpart hash valuemay be concatenated in any order. Once the hash contract is formed, thehash contract generation routine 1000 is complete, as shown at block1010. The hash contract generation routine 1000 is advantageous in thatthe routine cannot be performed with other types of digital contracts.

While FIG. 10 depicts blocks 1004 and 1006 in a specific order, this ismerely an illustrative example and is not meant to be limiting. Blocks1004 and 1006 can be completed in the reverse order.

FIG. 11 is a block diagram of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 to generate and transmit counterpart hashvalues. As illustrated in FIG. 11, the hash contract generation andverification environment 400 includes a first user device 402A and asecond user device 402B. The first and second user devices 402A-B mayeach be running an application retrieved from the applicationdistribution server 420. The applications may each execute theoperations described below as being performed by the first or seconduser devices 402A-B, respectively.

The first user device 402A may display an offer at (1). For example, thefirst user device 402A may display the terms and conditions andconsideration. The offer may be displayed for review by a first user. Ifthe first user agrees to the terms and conditions and consideration,then the first user device 402A may receive an indication of anacceptance of the offer at (2). The first user device 402A may furtherprompt the first user to provide one or more input(s) that uniquelyidentify the first user (for example, a multi-factor authenticationfactor, such as a fingerprint, a vein reading, an iris scan,face-recognition, a passcode, a single-use code, a key card, a digitalcertificate, a digital token, and/or any other item that represents abiological characteristic of the user, something that the user knows, orsomething that the user has). In response to receiving the acceptanceand/or the input(s), the first user device 402A generates a firstcounterpart hash value at (3) (for example, using data representing theacceptance and/or the input(s)). For example, the first user device 402Amay apply a hash function to data representing acceptance by the firstuser and/or other contract elements to form the first counterpart hashvalue. The first counterpart hash value may be a hash contract if allparties to the agreement have signed their respective counterpartcontract. The first user device 402A can then transmit the firstcounterpart hash value to the second user device 402B at (4).

In response to receiving the first counterpart hash value indicatingthat the first user accepted the offer, the second user device 402Bdisplays the offer at (5). The offer may be displayed for review by asecond user. If the second user also agrees to the terms and conditionsand consideration, then the second user device 402B may receive anindication of an acceptance of the offer at (6). The second user device402B may further prompt the second user to provide one or more input(s)that uniquely identify the second user (for example, a multi-factorauthentication factor, such as a fingerprint, a vein reading, an irisscan, face-recognition, a passcode, a single-use code, a key card, adigital certificate, a digital token, and/or any other item thatrepresents a biological characteristic of the user, something that theuser knows, or something that the user has). In response to receivingthe acceptance and/or the input(s), the second user device 402Bgenerates a second counterpart hash value at (7) (for example, usingdata representing the acceptance and/or the input(s)). For example, thesecond user device 402B may apply a hash function to data representingacceptance by the second user and/or other contract elements to form thesecond counterpart hash value, which results in the formation of alegally enforceable contract. Here, the second counterpart hash value isa hash contract because all parties have signed their respectivecounterpart contract. Optionally, the second user device 402B can thentransmit the second counterpart hash value to the first user device 402Aat (8).

The examples of FIGS. 10 and 11 may apply in situations in which nopre-existing agreement directed to the subject of the current agreementexists between the parties that enter into the current agreement.However, in the case of credit card transactions, mortgage applications,or other similar transactions, a user may have a pre-existing agreementwith a bank, a merchant, a credit company, a credit reporting agency,and/or the like. For example, the pre-existing agreement may indicatethat the user agrees to provide payment for transactions made with acredit card by a certain date in exchange for a credit card company or abank providing payment to a merchant or a merchant's bank at the timethat the user uses a credit card to make a purchase. Thus, counterpartcontracts may not be necessary. Rather, the acceptance of a transactionby one party—the user—may result in the formation of a legallyenforceable contract. FIGS. 13A through 19B depict such transactionsaccepted (or rejected) by one party.

Reordering Hash Inputs

FIG. 12 illustrates an exemplary block diagram depicting the generationof hash contracts using different hash input message formats. Asdescribed above with respect to FIGS. 9A-9B, the user device 402 and thecontract authentication server 440 (for example, the key seeder 443) mayeach establish a hash input message format. It may be important thateach device establish the same hash input message format because a valueof a resulting hash contract depends on the order of concatenatedcontract elements.

As illustrated in FIG. 12, in a first hash contract order, the contractelements are concatenated in the following order: terms and conditions1202, consideration 1204, acceptance 1206, and identity 1208, whereidentity 1208 is appended to the end of the acceptance 1206, theacceptance 1206 is appended to the end of the consideration 1204, andthe consideration 1204 is appended to the end of the terms andconditions 1202. Given this order, the hash function 1110 then producesthe hash contract “100110110101.”

In a second hash contract order, the same contract elements areconcatenated in the following order: consideration 1204, acceptance1206, terms and conditions 1202, and identity 1208, where identity 1208is appended to the end of the terms and conditions 1202, the terms andconditions 1202 is appended to the end of the acceptance 1206, and theacceptance 1206 is appended to the end of the consideration 1204. Giventhis order, the hash function 1210 then produces the hash contract“001101010100.” Thus, the two hash values are different even though thecontract elements are the same. However, even though the two hash valuesare different, the two hash values still represent the same legallyenforceable contract given that the contract elements are the same.

Given the importance of the order of concatenation, masking the order inwhich the contract elements are concatenated to form the hash contractmay further secure the transaction authorization process fromunauthorized or malicious devices attempting to spoof a user device 402.In fact, because the user device 402 and the contract authenticationserver 440 independently establish the hash input message format (forexample, using the initialization key and/or the identifier associatedwith the user device 402), the hash input message format is nottransmitted over a public network, such as the network 410, andtherefore is not susceptible to unauthorized access.

The contract authentication server 440 may concatenate contract elementsin a different order for different user devices 402, users, groups ofusers, networks, applications, systems, and/or any other criteria thatmay define an entity or a group of entities. For example, the contractauthentication server 440 may concatenate contract elements according tothe first hash contract order for a first user device 402 and mayconcatenate contract elements according to the second hash contractorder for a second user device 402.

The techniques described herein for varying the order of contractelement concatenation can be applied not only to the generation of hashcontracts, but also to the generation of an identity hash, thegeneration of an authentication hash, and/or the generation of any otherhash code.

Example Out-of-Band Credit Card Transaction Requests

FIG. 13A is a block diagram of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 to request authorization of a transactionout-of-band when a credit card is present. As used herein, anout-of-band transaction request occurs when the contract authenticationserver 440 communicates directly with the user device 402 to requestauthorization of a transaction. The contract authentication server 400communicates directly with the user device 402 to request authorizationof a transaction without going through the entity with which the user oruser device 402 is attempting to enter into an agreement (for example, adevice representing a POS, such as the merchant storefront 1302, creditcard processing network gateway 1308, or mortgage company server 1902).Conversely, an in-band transaction request occurs when the entity withwhich the user or user device 402 is attempting to enter into anagreement (for example, a device representing a POS, such as themerchant storefront 1302, credit card processing network gateway 1308,or mortgage company server 1902) requests authorization of a transactionand forwards the resulting hash code (for example, hash contract ordecline hash code) to the contract authorization server 440. Thecontract authorization server 440 then authorizes or rejects thetransaction through the entity with which the user or user device 402 isattempting to enter into an agreement. In other words, an in-bandtransaction request may occur when the contract authentication server440 does not directly communicate with the user device 402.

As illustrated in FIG. 13A, a user pays for an item or service with acredit card at (1). The user may pay in person and/or using the userdevice 402 (for example, via a mobile wallet application). The user maypay for the item or service at a merchant storefront 1302. The merchantstorefront 1302 may be a physical location, such as a store that offersgoods or services.

The merchant storefront 1302 can then transmit a transaction request toa merchant bank 1304 at (2). The merchant bank 1304 may be a bank thatmanages a bank account for the merchant storefront 1302. If thetransaction is approved, then the user's credit card issuing bank,represented here as the contract authentication server 440, may pay themerchant bank 1304 the transaction amount (or some percentage thereof)and the merchant bank 1304 may credit the account of the merchantstorefront 1302 with the transaction amount (or some percentagethereof). The transaction request may include transaction metadata, suchas at least one of a date, an identification of one or more entities(for example, the merchant storefront 1302, a name of the entity thatoperates the contract authentication server 440, a name of the userassociated with the user device 402, etc.), an amount (for example, zeroor non-zero), a location at which the transaction was initiated, an itemcorresponding to the transaction, terms and conditions, and/or the like.

The merchant bank 1304 can forward the transaction request to afinancial network system 1306 at (3). The financial network system 1306may be operated by an entity that manages credit cards, such as theuser's credit card. The financial network system 1306 may analyze thetransaction request and route the transaction request to the user'scredit card issuing bank (for example, the contract authenticationserver 440) at (4).

In response to receiving the transaction request, the contractauthentication server 440 can transmit a transaction request to the userdevice 402 at (5). The transaction request may be received by theapplication retrieved from the application distribution server 420 thatis running on the user device 402. Reception of the transaction requestmay cause the user device 402 (for example, the application) to promptthe user to accept or decline the transaction corresponding to thecredit card payment at step (1). The prompt may include informationassociated with the transaction, such as some or all of the transactionmetadata included in the transaction request transmitted by the merchantstorefront 1302. The user device 402 may further prompt the user toprovide one or more input(s) that uniquely identify the user (forexample, a multi-factor authentication factor, such as a fingerprint, avein reading, an iris scan, face-recognition, a passcode, a single-usecode, a key card, a digital certificate, a digital token, and/or anyother item that represents a biological characteristic of the user,something that the user knows, or something that the user has). The userdevice 402 can convert these input(s) into an identity hash code to beused when generating a hash contract or a decline hash code.

If the user accepts the transaction, then the user device 402 generatesa first hash contract at (6) in a manner as described herein. The userdevice 402 can then transmit the first hash contract to the contractauthentication server 440 at (7). Alternatively, not shown, if the userdeclines the transaction, then the user device 402 generates a declinehash code and transmits the decline hash code to the contractauthentication server 440.

Before, during, or after the user device 402 generates the first hashcontract, the contract authentication server 440 generates an acceptancehash contract and a decline hash code at (8). The contractauthentication server 440 then determines whether the transaction isapproved based on a comparison of the first hash contract with theacceptance hash contract and a comparison of the first hash contractwith the decline hash code at (9). Here, because the user accepted thetransaction, the first hash contract and the acceptance hash contractmatch and the first hash contract and the decline hash code do notmatch. Thus, the contract authentication server 440 determines that thetransaction is approved.

The contract authentication server 440 can then transmit the transactionresult (for example, an approval) to the financial network system 1306at (10), which forwards the transaction result to the merchant bank 1304at (11). The merchant bank 1304 can then forward the transaction resultto the merchant storefront 1302 at (12), which results in the merchantstorefront 1302 allowing the transaction to be completed. In this case,the merchant storefront 1302 may not need to keep the signed receipt asa contract for the user to pay because the user may have already signeda contract with the entity operating the contract authentication server440 (for example, the card issuing bank) in which the entity agrees topay the merchant storefront 1302 when a transaction is authorized.

Note that while FIG. 13A depicts the merchant bank 1304 and thefinancial network system 1306, these systems are not necessary. Forexample, the merchant storefront 1302 may communicate directly with thefinancial network system 1306 and/or the contract authentication server440. Similarly, the merchant bank 1304 may communicate directly with thecontract authentication server 440.

In addition, other systems not shown in FIG. 13A may be present in theworkflow. For example, intermediary systems may be present between themerchant bank 1304 and the financial network system 1306 and/or betweenthe financial network system 1306 and the contract authentication server440. As another example, a credit card processing network gateway incommunication with the user device 402 and/or the merchant storefront1302 may be present in the workflow.

FIG. 13B is a block diagram of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 to request authorization of a transactionout-of-band when a credit card is not present. As illustrated in FIG.13B, a user pays for an item or service with a credit card number at(1). In other words, the user may pay for an item or service withoutusing a physical credit card. Such payments may occur when the userpurchases an item or service from a network-accessible merchant, such asa web store. The user may pay using the user device 402 or another userdevice (not shown). The user may pay for the item or service via acredit card processing network gateway 1308. The credit card processingnetwork gateway 1308 may be a system that processes credit cardtransactions that occur when the credit card is not physically present(for example, transactions that occur over a network, such as thenetwork 410). The user device 402 or other user device (not shown) maybe redirected to the credit card processing network gateway 1308 by thenetwork-accessible merchant.

The credit card processing network gateway 1308 can then transmit atransaction request to the financial network system 1306 at (2). Thetransaction request may include transaction metadata, such as at leastone of a date, an identification of one or more entities (for example,the merchant storefront 1302, a name of the entity that operates thecontract authentication server 440, a name of the user associated withthe user device 402, etc.), an amount (for example, zero or non-zero), alocation at which the transaction was initiated, an item correspondingto the transaction, terms and conditions, and/or the like. The creditcard processing network gateway 1308 may be in communication with thenetwork-accessible merchant (not shown) to obtain some or all of thetransaction metadata included in the transaction request.

The financial network system 1306 may analyze the transaction requestand route the transaction request to the user's credit card issuing bank(for example, the contract authentication server 440) at (3).

In response to receiving the transaction request, the contractauthentication server 440 can transmit a transaction request to the userdevice 402 at (4). The transaction request may be received by theapplication retrieved from the application distribution server 420 thatis running on the user device 402. Reception of the transaction requestmay cause the user device 402 (for example, the application) to promptthe user to accept or decline the transaction corresponding to thecredit card payment at step (1). The prompt may include informationassociated with the transaction, such as some or all of the transactionmetadata included in the transaction request transmitted by the creditcard processing network gateway 1308. The user device 402 may furtherprompt the user to provide one or more input(s) that uniquely identifythe user (for example, a multi-factor authentication factor, such as afingerprint, a vein reading, an iris scan, face-recognition, a passcode,a single-use code, a key card, a digital certificate, a digital token,and/or any other item that represents a biological characteristic of theuser, something that the user knows, or something that the user has).The user device 402 can convert these input(s) into an identity hashcode to be used when generating a hash contract or a decline hash code.

If the user accepts the transaction, then the user device 402 generatesa first hash contract at (5) in a manner as described herein. The userdevice 402 can then transmit the first hash contract to the contractauthentication server 440 at (6). Alternatively, not shown, if the userdeclines the transaction, then the user device 402 generates a declinehash code and transmits the decline hash code to the contractauthentication server 440.

Before, during, or after the user device 402 generates the first hashcontract, the contract authentication server 440 generates an acceptancehash contract and a decline hash code at (7). The contractauthentication server 440 then determines whether the transaction isapproved based on a comparison of the first hash contract with theacceptance hash contract and a comparison of the first hash contractwith the decline hash code at (8). Here, because the user accepted thetransaction, the first hash contract and the acceptance hash contractmatch and the first hash contract and the decline hash code do notmatch. Thus, the contract authentication server 440 determines that thetransaction is approved.

The contract authentication server 440 can then transmit the transactionresult (for example, an approval) to the financial network system 1306at (9), which forwards the transaction result to the credit cardprocessing network gateway 1308 at (10). The credit card processingnetwork gateway 1308 may then notify the network-accessible merchantthat the transaction is approved, which results in thenetwork-accessible merchant allowing the transaction to be completed.

Note that while FIG. 13B depicts the financial network system 1306 andthe credit card processing network gateway 1308, these systems are notnecessary. For example, the credit card processing network gateway 1308may communicate directly with the contract authentication server 440.Similarly, the financial network system 1306 may communicate directlywith the user device 402.

In addition, other systems not shown in FIG. 13B may be present in theworkflow. For example, intermediary systems may be present between thecredit card processing network gateway 1308 and the financial networksystem 1306 and/or between the financial network system 1306 and thecontract authentication server 440. As another example, a merchant bank,such as the merchant bank 1304, in communication with the user device402, the credit card processing network gateway 1308, and/or financialnetwork system 1306 may be present in the workflow.

Example In-Band Credit Card Transaction Requests

FIG. 14A is a block diagram of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 to request authorization of a transactionin-band when a credit card is present. As illustrated in FIG. 14A, auser pays for an item or service with a credit card at (1). The user maypay in person and/or using the user device 402 (for example, via amobile wallet application). The user may pay for the item or service ata merchant storefront 1302.

In response to receiving the payment attempt, the merchant storefront1302 may transmit a request to the user device 402 to authorize thetransaction at (2). The authorization request may be received by theapplication retrieved from the application distribution server 420 thatis running on the user device 402. Reception of the authorizationrequest may cause the user device 402 (for example, the application) toprompt the user to accept or decline the transaction corresponding tothe credit card payment at step (1). The prompt may include informationassociated with the transaction, such as at least one of a date, anidentification of one or more entities (for example, the merchantstorefront 1302, a name of the entity that operates the contractauthentication server 440, a name of the user associated with the userdevice 402, etc.), an amount (for example, zero or non-zero), a locationat which the transaction was initiated, an item corresponding to thetransaction, terms and conditions, and/or the like. The user device 402may further prompt the user to provide one or more input(s) thatuniquely identify the user (for example, a multi-factor authenticationfactor, such as a fingerprint, a vein reading, an iris scan,face-recognition, a passcode, a single-use code, a key card, a digitalcertificate, a digital token, and/or any other item that represents abiological characteristic of the user, something that the user knows, orsomething that the user has). The user device 402 can convert theseinput(s) into an identity hash code to be used when generating a hashcontract or a decline hash code.

If the user accepts the transaction, then the user device 402 generatesa first hash contract at (3) in a manner as described herein. The userdevice 402 can then transmit the first hash contract to the merchantstorefront 1302 at (4). Alternatively, not shown, if the user declinesthe transaction, then the user device 402 generates a decline hash codeand transmits the decline hash code to the merchant storefront 1302.

The merchant storefront 1302 can then transmit a transaction request tothe merchant bank 1304 at (5). The transaction request may include thefirst hash contract and transaction metadata, such as at least one of adate, an identification of one or more entities (for example, themerchant storefront 1302, a name of the entity that operates thecontract authentication server 440, a name of the user associated withthe user device 402, etc.), an amount (for example, zero or non-zero), alocation at which the transaction was initiated, an item correspondingto the transaction, terms and conditions, and/or the like.

The merchant bank 1304 can forward the transaction request to thefinancial network system 1306 at (6). The financial network system 1306may analyze the transaction request and route the transaction request tothe user's credit card issuing bank (for example, the contractauthentication server 440) at (7).

In response to receiving the transaction request, the contractauthentication server 440 generates an acceptance hash contract and adecline hash code at (8). The contract authentication server 440 thendetermines whether the transaction is approved based on a comparison ofthe first hash contract (for example, which is extracted from thetransaction request) with the acceptance hash contract and a comparisonof the first hash contract with the decline hash code at (9). Here,because the user accepted the transaction, the first hash contract andthe acceptance hash contract match and the first hash contract and thedecline hash code do not match. Thus, the contract authentication server440 determines that the transaction is approved.

The contract authentication server 440 can then transmit the transactionresult (for example, an approval) to the financial network system 1306at (10), which forwards the transaction result to the merchant bank 1304at (11). The merchant bank 1304 can then forward the transaction resultto the merchant storefront 1302 at (12), which results in the merchantstorefront 1302 allowing the transaction to be completed.

Note that while FIG. 14A depicts the merchant bank 1304 and thefinancial network system 1306, these systems are not necessary. Forexample, the merchant storefront 1302 may communicate directly with thefinancial network system 1306 and/or the contract authentication server440. Similarly, the merchant bank 1304 may communicate directly with thecontract authentication server 440.

In addition, other systems not shown in FIG. 14A may be present in theworkflow. For example, intermediary systems may be present between themerchant bank 1304 and the financial network system 1306 and/or betweenthe financial network system 1306 and the contract authentication server440. As another example, a credit card processing network gateway incommunication with the user device 402 and/or the merchant storefront1302 may be present in the workflow.

FIG. 14B is a block diagram of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 to request authorization of a transactionin-band when a credit card is not present. As illustrated in FIG. 14B, auser pays for an item or service with a credit card number at (1). Inother words, the user may pay for an item or service without using aphysical credit card. Such payments may occur when the user purchases anitem or service from a network-accessible merchant, such as a web store.The user may pay using the user device 402 or another user device (notshown). The user may pay for the item or service via the credit cardprocessing network gateway 1308. The user device 402 or other userdevice (not shown) may be redirected to the credit card processingnetwork gateway 1308 by the network-accessible merchant.

In response to receiving the payment attempt, the credit card processingnetwork gateway 1308 may transmit a request to the user device 402 toauthorize the transaction at (2). The authorization request may bereceived by the application retrieved from the application distributionserver 420 that is running on the user device 402. Reception of theauthorization request may cause the user device 402 (for example, theapplication) to prompt the user to accept or decline the transactioncorresponding to the credit card payment at step (1). The prompt mayinclude information associated with the transaction, such as at leastone of a date, an identification of one or more entities (for example,the merchant storefront 1302, a name of the entity that operates thecontract authentication server 440, a name of the user associated withthe user device 402, etc.), an amount (for example, zero or non-zero), alocation at which the transaction was initiated, an item correspondingto the transaction, terms and conditions, and/or the like. The userdevice 402 may further prompt the user to provide one or more input(s)that uniquely identify the user (for example, a multi-factorauthentication factor, such as a fingerprint, a vein reading, an irisscan, face-recognition, a passcode, a single-use code, a key card, adigital certificate, a digital token, and/or any other item thatrepresents a biological characteristic of the user, something that theuser knows, or something that the user has). The user device 402 canconvert these input(s) into an identity hash code to be used whengenerating a hash contract or a decline hash code.

If the user accepts the transaction, then the user device 402 generatesa first hash contract at (3) in a manner as described herein. The userdevice 402 can then transmit the first hash contract to the credit cardprocessing network gateway 1308 at (4). Alternatively, not shown, if theuser declines the transaction, then the user device 402 generates adecline hash code and transmits the decline hash code to the credit cardprocessing network gateway 1308.

The credit card processing network gateway 1308 can then transmit atransaction request to the financial network system 1306 at (5). Thetransaction request may include the first hash contract and transactionmetadata, such as at least one of a date, an identification of one ormore entities (for example, the merchant storefront 1302, a name of theentity that operates the contract authentication server 440, a name ofthe user associated with the user device 402, etc.), an amount (forexample, zero or non-zero), a location at which the transaction wasinitiated, an item corresponding to the transaction, terms andconditions, and/or the like. The credit card processing network gateway1308 may be in communication with the network-accessible merchant (notshown) to obtain some or all of the transaction metadata included in thetransaction request.

The financial network system 1306 may analyze the transaction requestand route the transaction request to the user's credit card issuing bank(for example, the contract authentication server 440) at (6).

In response to receiving the transaction request, the contractauthentication server 440 generates an acceptance hash contract and adecline hash code at (7). The contract authentication server 440 thendetermines whether the transaction is approved based on a comparison ofthe first hash contract (for example, which is extracted from thetransaction request) with the acceptance hash contract and a comparisonof the first hash contract with the decline hash code at (8). Here,because the user accepted the transaction, the first hash contract andthe acceptance hash contract match and the first hash contract and thedecline hash code do not match. Thus, the contract authentication server440 determines that the transaction is approved.

The contract authentication server 440 can then transmit the transactionresult (for example, an approval) to the financial network system 1306at (9), which forwards the transaction result to the credit cardprocessing network gateway 1308 at (10). The credit card processingnetwork gateway 1308 may then notify the network-accessible merchantthat the transaction is approved, which results in thenetwork-accessible merchant allowing the transaction to be completed.

Note that while FIG. 14B depicts the financial network system 1306 andthe credit card processing network gateway 1308, these systems are notnecessary. For example, the credit card processing network gateway 1308may communicate directly with the contract authentication server 440.Similarly, the financial network system 1306 may communicate directlywith the user device 402.

In addition, other systems not shown in FIG. 14B may be present in theworkflow. For example, intermediary systems may be present between thecredit card processing network gateway 1308 and the financial networksystem 1306 and/or between the financial network system 1306 and thecontract authentication server 440. As another example, a merchant bank,such as the merchant bank 1304, in communication with the user device402, the credit card processing network gateway 1308, and/or financialnetwork system 1306 may be present in the workflow.

Example Transaction Authorization or Rejection Routines

FIG. 15A is a flow diagram depicting a hash code generation routine 1500illustratively implemented by a user device, according to oneembodiment. As an example, the user device 402 of FIG. 4 (for example,the application retrieved from the application distribution server 420)can be configured to execute the hash code generation routine 1500. Theuser device 402 may execute the hash code generation routine 1500 inembodiments in which the symmetric key is not a single-use key. The hashcode generation routine 1500 begins at block 1502.

At block 1504, a transaction request is received. For example, a usermay be attempting to purchase an item or service. As another example,the transaction request may be for a transaction that instructs the userdevice 402 to reset the current symmetric key by replacing the currentsymmetric key with a new symmetric key (for example, a zero transaction,a key reset transaction, a new key generation transaction, etc.).

At block 1506, a determination is made as to whether the transaction isa new key generation transaction. For example, the user device 402 mayanalyze the amount included in the transaction to see if the value iszero, which would indicate that the transaction is a zero transaction.As another example, the user device 402 may analyze another fieldincluded in the transaction that may indicate whether a new symmetrickey should be generated. If the transaction is a new key generationtransaction, then the hash code generation routine 1500 proceeds toblock 1508. Otherwise, if the transaction is not a new key generationtransaction, then the hash code generation routine 1500 proceeds toblock 1510.

In embodiments in which the symmetric key is a single-use key, the hashcode generation routine 1500 would skip block 1506. Instead, the hashcode generation routine 1500 would proceed directly to block 1508.

At block 1508, a new symmetric key is generated. For example, the userdevice 402 may apply a hash function to a master key and some or all ofthe transaction metadata included in the transaction to generate the newsymmetric key. The new symmetric key may replace the previously currentsymmetric key. Once the new symmetric key is generated, the hash codegeneration routine 1500 proceeds to block 1510.

At block 1510, a determination is made as to whether the user approvesthe transaction. For example, the user device 402 may generate anddisplay a user interface that asks the user whether the user accepts ordeclines the transaction. The user interface may further includeinformation identifying the transaction. If the user indicates anacceptance of the transaction, then the hash code generation routine1500 proceeds to block 1512. Otherwise, if the user indicates arejection of the transaction, then the hash code generation routine 1500proceeds to block 1516.

In further embodiments, not shown, the user device 402 may also promptthe user via the user interface to provide one or more input(s) thatuniquely identify the user (for example, a multi-factor authenticationfactor, such as a fingerprint, a vein reading, an iris scan,face-recognition, a passcode, a single-use code, a key card, a digitalcertificate, a digital token, and/or any other item that represents abiological characteristic of the user, something that the user knows, orsomething that the user has). The input(s) may then be converted into anidentity hash code in a manner as described herein such that theidentity hash code can be applied as an input to the hash function usedto generate the hash contract and/or the decline hash code.

At block 1512, a hash contract is generated using contract elements, thecurrent symmetric key (for example, the new symmetric key if it isgenerated at block 1508), an identity value (for example, an identityhash code), and/or a previous hash code (for example, a hash contract ifthe user device 402 generated a hash contract for a previous transactionauthorization request or a decline hash code if the user device 402generated a decline hash code for a previous transaction authorizationrequest). The contract elements may include a value that represents anacceptance of the transaction.

At block 1514, the hash contract is transmitted to a server. Forexample, the user device 402 may transmit the hash contract to thecontract authentication server 440 to allow the contract authenticationserver 440 to verify that the transaction approval can be authenticated.After the hash contract is transmitted to the server, the hash codegeneration routine 1500 is complete, as shown at block 1520.

At block 1516, a decline hash code is generated using contract elements,the current symmetric key (for example, the new symmetric key if it isgenerated at block 1508), an identity value (for example, an identityhash code), and/or a previous hash code (for example, a hash contract ifthe user device 402 generated a hash contract for a previous transactionauthorization request or a decline hash code if the user device 402generated a decline hash code for a previous transaction authorizationrequest). The contract elements may include a value that represents arejection of the transaction.

At block 1518, the decline hash code is transmitted to a server. Forexample, the user device 402 may transmit the decline hash code to thecontract authentication server 440 to allow the contract authenticationserver 440 to verify that the transaction rejection can beauthenticated. After the decline hash code is transmitted to the server,the hash code generation routine 1500 is complete, as shown at block1520.

FIG. 15B is a flow diagram depicting a contract verification routine1550 illustratively implemented by a contract authentication server,according to one embodiment. As an example, the contract authenticationserver 440 of FIG. 4 can be configured to execute the contractverification routine 1550. The contract verification routine 1550 beginsat block 1552.

At block 1554, a hash contract is generated using contract elements, thecurrent symmetric key (for example, a new symmetric key if the contractauthentication server 440 transmitted a new key generation request), anidentity value (for example, an identity hash code), and/or a previoushash code (for example, a hash contract if the user device 402 generateda hash contract for a previous transaction authorization request or adecline hash code if the user device 402 generated a decline hash codefor a previous transaction authorization request). The contract elementsmay include a value that represents an acceptance of the transaction.

At block 1556, a decline hash code is generated using contract elements,the current symmetric key (for example, a new symmetric key if thecontract authentication server 440 transmitted a new key generationrequest), an identity value (for example, an identity hash code), and/ora previous hash code (for example, a hash contract if the user device402 generated a hash contract for a previous transaction authorizationrequest or a decline hash code if the user device 402 generated adecline hash code for a previous transaction authorization request). Thecontract elements may include a value that represents a rejection of thetransaction.

The contract verification routine 1550 may perform blocks 1554 and 1556simultaneously or in any order. Once the hash contract and decline hashcodes are generated, the contract verification routine 1550 proceeds toblock 1558.

At block 1558, a user device hash code is obtained from a user device.For example, the user device hash code may be a hash contract if theuser operating the user device 402 accepts the transaction and may be adecline hash code if the user operating the user device 402 rejects thetransaction.

At block 1560, the hash contract is compared with the user device hashcode. For example, the hash contract may be generated using the sameinputs concatenated in the same order as how the user device hash codeis generated if the user device hash code is a hash contract.

At block 1562, a determination is made as to whether the hash contractand the user device hash code match. If the hash contract and the userdevice hash code match, then the contract verification routine 1550proceeds to block 1564. Otherwise, if the hash contract and the userdevice hash code do not match, then the contract verification routine1550 proceeds to block 1566.

At block 1564, the digital transaction is authorized. For example, thetransaction is authorized because, based on the comparison, the contractauthentication server 440 determines that the user device 402 generateda hash contract, indicating that the user accepted the transaction. Inaddition, because the hash contract generated by the contractauthentication server 440 matches the user device hash code, thecontract authentication server 440 implicitly authenticates an identityof the user and verifies that the user is the authorized user and not anunauthorized or malicious user (for example, because the contractauthentication server 440 includes the identity hash code as an input tothe hash function used to generate the hash contract and, given thematch, the user therefore provided the same input that was used togenerate the identity hash code when the user was prompted to authorizethe transaction). After the digital transaction is authorized, thecontract verification routine 1550 is complete, as shown at block 1574.

At block 1566, the decline hash code is compared with the user devicehash code. For example, the decline hash code may be generated using thesame inputs concatenated in the same order as how the user device hashcode is generated if the user device hash code is a decline hash code.

At block 1568, a determination is made as to whether the decline hashcode and the user device hash code match. If the decline hash code andthe user device hash code match, then the contract verification routine1550 proceeds to block 1570. Otherwise, if the decline hash code and theuser device hash code do not match, then the contract verificationroutine 1550 proceeds to block 1572.

At block 1570, the digital transaction is rejected. For example, thetransaction is rejected because, based on the comparison, the contractauthentication server 440 determines that the user device 402 generateda decline hash code, indicating that the user rejected the transaction.In addition, because the decline hash code generated by the contractauthentication server 440 matches the user device hash code, thecontract authentication server 440 implicitly authenticates an identityof the user and verifies that the user is the authorized user and not anunauthorized or malicious user (for example, because the contractauthentication server 440 includes the identity hash code as an input tothe hash function used to generate the decline hash code and, given thematch, the user therefore provided the same input that was used togenerate the identity hash code when the user was prompted to authorizethe transaction). After the digital transaction is rejected, thecontract verification routine 1550 is complete, as shown at block 1574.

At block 1572, the user account associated with the operator of the userdevice 402 is suspended. For example, the user account is suspendedbecause, based on the comparison, the contract authentication server 440determines that the user device 402 did not generate a proper hashcontract or decline hash code, indicating that either the user enteredan incorrect input when prompted to enter an input to uniquely identifythe user (for example, a multi-factor authentication factor, such as afingerprint, a vein reading, an iris scan, face-recognition, a passcode,a single-use code, a key card, a digital certificate, a digital token,and/or any other item that represents a biological characteristic of theuser, something that the user knows, or something that the user has)and/or an unauthorized or malicious user attempted to authorize (orreject) a transaction unbeknownst to the user associated with the useraccount. In other words, the user account is suspended because thecontract authentication server 440 was unable to authenticate anidentity of the user and/or verify that the user is the authorized userand not an unauthorized or malicious user. After the user account issuspended, the contract verification routine 1550 is complete, as shownat block 1574.

Example Accepted and Rejected Credit Card Transactions

FIG. 16A is a block diagram of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 when a credit card transaction isauthorized. For simplicity, several components, such as the merchantbank 1304 and/or the financial network system 1306, are excluded. Theembodiment depicted in FIG. 16A may be performed when the symmetric keyis not a single-use key. As illustrated in FIG. 16A, a user pays for anitem or service with a credit card at (1). The user may pay with aphysical credit card at the merchant storefront 1302. Alternatively, theuser may pay with a credit card number instead of with the physicalcredit card via the credit card processing network gateway 1308 (notshown).

The merchant storefront 1302 can then transmit a transaction request tothe request generator 442 (for example, via the merchant bank 1304and/or the financial network system 1306) at (2). The transactionrequest may include transaction metadata, such as at least one of adate, an identification of one or more entities (for example, themerchant storefront 1302, a name of the entity that operates thecontract authentication server 440, a name of the user associated withthe user device 402, etc.), an amount (for example, zero or non-zero), alocation at which the transaction was initiated, an item correspondingto the transaction, terms and conditions, and/or the like.

The request generator 442 can determine that the transaction amountincluded in the transaction request is non-zero at (3). If thetransaction amount was zero, then the request generator 442 may instructthe key seeder 443 (not shown) to generate a new symmetric key.Alternatively, other data included in the transaction request may informthe request generator 442 whether a new symmetric key is to begenerated. In response to determining that the transaction amount isnon-zero, the request generator 442 can forward the transaction requestto the hash generator 444 at (4A) and transmit an authorization requestto the user device 402 at (4B). The authorization request may includesome or all of the data included in the transaction request. Theauthorization request may specifically be sent to the applicationretrieved from the application distribution server 440 that is runningon the user device 402.

Reception of the authorization request may cause the user device 402(for example, the application) to determine that the transaction amountis non-zero at (5). Thus, the user device 402 may not generate a newsymmetric key. The user device 402 may then prompt the user to accept ordecline the transaction corresponding to the credit card payment at step(1). The prompt may include information associated with the transaction,such as the data provided in the authorization request. The user device402 may further prompt the user to provide one or more input(s) thatuniquely identify the user (for example, a multi-factor authenticationfactor, such as a fingerprint, a vein reading, an iris scan,face-recognition, a passcode, a single-use code, a key card, a digitalcertificate, a digital token, and/or any other item that represents abiological characteristic of the user, something that the user knows, orsomething that the user has). The user device 402 can convert theseinput(s) into an identity hash code to be used when generating a hashcontract or a decline hash code.

Here, the user accepts the transaction and therefore the user device 402receives an indication of an acceptance of the transaction at (6).Accordingly, the user device 402 generates a first hash contract at (7)using the contract elements (for example, as provided in theauthorization request), an identity value (for example, the identityhash code generated based on the input(s) that uniquely identify theuser), a symmetric key (for example, a previously used symmetric keygiven that the transaction amount is non-zero), a value representing anacceptance of the transaction, and/or a previous hash code (for example,a hash contract if the user device 402 generated a hash contract for aprevious transaction authorization request or a decline hash code if theuser device 402 generated a decline hash code for a previous transactionauthorization request). The user device 402 can then transmit the firsthash contract to the hash comparator 445 at (8).

Before, during, or after the user device 402 executes the operations togenerate the first hash contract, the hash generator 444 retrieves asymmetric key from the key data store 447 at (9). For example, the hashgenerator 444 may retrieve the symmetric key that is stored in the keydata store 447 in association with the user operating the user device402 (for example, as indicated by the transaction request). The hashgenerator 444 may also retrieve a previous hash code from the hash datastore 448 at (10). For example, the previous hash code is a hashcontract if the user device 402 generated a hash contract for a previoustransaction authorization request transmitted by the request generator442 and is a decline hash code if the user device 402 generated adecline hash code for a previous transaction authorization requesttransmitted by the request generator 442.

The hash generator 444 can then generate a second hash contract and adecline hash code at (11) using the retrieved data (for example, thesymmetric key and/or the previous hash code), the contract elements (forexample, provided in the transaction request received from the requestgenerator 442, retrieved from the contract elements data store 449 (notshown) after the request generator 442 stores contract elements providedin the transaction request in the contract elements data store 449 inassociation with the user operating the user device 402, etc.), and/oran identity hash code retrieved from the user identity data store 446(not shown). For example, the identity hash code may be an identity hashcode initially provided by the user device 402 when the applicationrunning on the user device 402 is first installed or when a user isotherwise setting up the application. As described herein, the hashgenerator 444 may generate the second hash contract using a valuerepresenting an acceptance of the transaction and may generate thedecline hash code using a value representing a rejection of thetransaction. The hash generator 444 can then transmit the second hashcontract and the decline hash code to the hash comparator 445 at (12).

The hash comparator 445 can determine whether the transaction isapproved at (13) based on a comparison of the first hash contract withthe second hash contract and a comparison of the first hash contractwith the decline hash code. For example, here, the user device 402generated a hash contract instead of a decline hash code. Thus, if theuser provided the correct information when approving the transaction(for example, accurate values for the input(s) that uniquely representthe user such that the identity hash code generated by the user device402 matches the identity hash code stored in the user identity datastore 446 that was previously provided by the user device 402), then thehash comparator 445 determines that the transaction is approved.Otherwise, if the user did not provide the correct information whenapproving the transaction, the hash comparator 445 determines that anerror occurred and may suspend the user's account and/or notify the userdevice 402 of the issue. The hash comparator 445 can transmit thetransaction result (for example, an approval) to the merchant storefront1302 at (14), which results in the merchant storefront 1302 allowing thetransaction to be completed.

The merchant storefront 1302 may further forward the transaction resultto the user device 402 at (15). Reception of the transaction result maycause the user device 402 (for example, the application) to generate anddisplay a notification indicating that the transaction has beensuccessfully approved.

Before, during, or after transmitting the transaction result to themerchant storefront 1302, the hash comparator 445 may store the secondhash contract in the hash data store 448 at (16). The hash comparator445 may store the second hash contract in the hash data store 448instead of the decline hash code because the hash comparator 445 hasdetermined that the user device 402 transmitted a hash contract thatmatches the second hash contract. The second hash contract may replaceany hash code (for example, hash contract or decline hash code) that waspreviously stored in the hash data store 448 in association with theuser operating the user device 402. Thus, the next time the user device402 is provided with a transaction authorization request, the hashgenerator 444 can retrieve and use the second hash contract ingenerating a new hash contract and a new decline hash code fordetermining whether the next transaction authorization request isapproved. As described herein, the previous hash code is not transmittedbetween the user device 402 and the contract authentication server 440during a current transaction authorization request. Accordingly, even ifa malicious device is able to intercept the other inputs to the hashfunction used to produce the hash contract and determines the properorder for concatenating the inputs, the malicious device may still beprevented from successfully approving the transaction because theprevious hash code may be unknown to the malicious device.

Optionally, not shown, the hash comparator 445 may store the first hashcontract in addition to the second hash contract (for example, in thehash data store 448). The first and second hash contracts may be storedfor auditing or verification purposes. For example, the contractauthentication server 440 may be requested by a user device 402 at alater time to provide the hash contract (or decline hash code) providedby the user device 402 or another user device 402 at a previous time.The contract authentication server 440 can then retrieve the hashcontract from the hash data store 448 and provide the retrieved hashcontract to the user device 402 to satisfy the request. In someembodiments, the first hash contract and/or the second hash contract maybe associated with device metadata that indicates which device (userdevice 402 or contract authentication server 440) generated therespective hash contract. Thus, the contract authentication server 440can use the device metadata to identify a specific hash contractgenerated by a specific device and then retrieve the hash contract fromthe hash data store 448.

FIG. 16B is a block diagram of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 when a credit card transaction is rejected.For simplicity, several components, such as the merchant bank 1304and/or the financial network system 1306, are excluded. The embodimentdepicted in FIG. 16B may be performed when the symmetric key is not asingle-use key. As illustrated in FIG. 16B, a user pays for an item orservice with a credit card at (1). The user may pay with a physicalcredit card at the merchant storefront 1302. Alternatively, the user maypay with a credit card number instead of with the physical credit cardvia the credit card processing network gateway 1308 (not shown).

The merchant storefront 1302 can then transmit a transaction request tothe request generator 442 (for example, via the merchant bank 1304and/or the financial network system 1306) at (2). The transactionrequest may include transaction metadata, such as at least one of adate, an identification of one or more entities (for example, themerchant storefront 1302, a name of the entity that operates thecontract authentication server 440, a name of the user associated withthe user device 402, etc.), an amount (for example, zero or non-zero), alocation at which the transaction was initiated, an item correspondingto the transaction, terms and conditions, and/or the like.

The request generator 442 can determine that the transaction amountincluded in the transaction request is non-zero at (3). If thetransaction amount was zero, then the request generator 442 may instructthe key seeder 443 (not shown) to generate a new symmetric key.Alternatively, other data included in the transaction request may informthe request generator 442 whether a new symmetric key is to begenerated. In response to determining that the transaction amount isnon-zero, the request generator 442 can forward the transaction requestto the hash generator 444 at (4A) and transmit an authorization requestto the user device 402 at (4B). The authorization request may includesome or all of the data included in the transaction request. Theauthorization request may specifically be sent to the applicationretrieved from the application distribution server 440 that is runningon the user device 402.

Reception of the authorization request may cause the user device 402(for example, the application) to determine that the transaction amountis non-zero at (5). Thus, the user device 402 may not generate a newsymmetric key. The user device 402 may then prompt the user to accept ordecline the transaction corresponding to the credit card payment at step(1). The prompt may include information associated with the transaction,such as the data provided in the authorization request. The user device402 may further prompt the user to provide one or more input(s) thatuniquely identify the user (for example, a multi-factor authenticationfactor, such as a fingerprint, a vein reading, an iris scan,face-recognition, a passcode, a single-use code, a key card, a digitalcertificate, a digital token, and/or any other item that represents abiological characteristic of the user, something that the user knows, orsomething that the user has). The user device 402 can convert theseinput(s) into an identity hash code to be used when generating a hashcontract or a decline hash code.

Here, the user rejects the transaction and therefore the user device 402receives an indication of a rejection of the transaction at (6).Accordingly, the user device 402 generates a first decline hash code at(7) using the contract elements (for example, as provided in theauthorization request), an identity value (for example, the identityhash code generated based on the input(s) that uniquely identify theuser), a symmetric key (for example, a previously used symmetric keygiven that the transaction amount is non-zero), a value representing arejection of the transaction, and/or a previous hash code (for example,a hash contract if the user device 402 generated a hash contract for aprevious transaction authorization request or a decline hash code if theuser device 402 generated a decline hash code for a previous transactionauthorization request). The user device 402 can then transmit the firstdecline hash code to the hash comparator 445 at (8).

Before, during, or after the user device 402 executes the operations togenerate the first decline hash code, the hash generator 444 retrieves asymmetric key from the key data store 447 at (9). For example, the hashgenerator 444 may retrieve the symmetric key that is stored in the keydata store 447 in association with the user operating the user device402 (for example, as indicated by the transaction request). The hashgenerator 444 may also retrieve a previous hash code from the hash datastore 448 at (10). For example, the previous hash code is a hashcontract if the user device 402 generated a hash contract for a previoustransaction authorization request transmitted by the request generator442 and is a decline hash code if the user device 402 generated adecline hash code for a previous transaction authorization requesttransmitted by the request generator 442.

The hash generator 444 can then generate a hash contract and a seconddecline hash code at (11) using the retrieved data (for example, thesymmetric key and/or the previous hash code), the contract elements (forexample, provided in the transaction request received from the requestgenerator 442, retrieved from the contract elements data store 449 (notshown) after the request generator 442 stores contract elements providedin the transaction request in the contract elements data store 449 inassociation with the user operating the user device 402, etc.), and/oran identity hash code retrieved from the user identity data store 446(not shown). For example, the identity hash code may be an identity hashcode initially provided by the user device 402 when the applicationrunning on the user device 402 is first installed or when a user isotherwise setting up the application. As described herein, the hashgenerator 444 may generate the hash contract using a value representingan acceptance of the transaction and may generate the second declinehash code using a value representing a rejection of the transaction. Thehash generator 444 can then transmit the hash contract and the seconddecline hash code to the hash comparator 445 at (12).

The hash comparator 445 can determine whether the transaction isapproved at (13) based on a comparison of the first decline hash codewith the hash contract and a comparison of the first decline hash codewith the second decline hash code. For example, here, the user device402 generated a decline hash code instead of a hash contract. Thus, ifthe user provided the correct information when rejecting the transaction(for example, accurate values for the input(s) that uniquely representthe user such that the identity hash code generated by the user device402 matches the identity hash code stored in the user identity datastore 446 that was previously provided by the user device 402), then thehash comparator 445 determines that the transaction is rejected.Otherwise, if the user did not provide the correct information whenrejected the transaction, the hash comparator 445 determines that anerror occurred and may suspend the user's account and/or notify the userdevice 402 of the issue. The hash comparator 445 can transmit thetransaction result (for example, a rejection) to the merchant storefront1302 at (14), which results in the merchant storefront 1302 preventingthe transaction from being completed.

The merchant storefront 1302 may further forward the transaction resultto the user device 402 at (15). Reception of the transaction result maycause the user device 402 (for example, the application) to generate anddisplay a notification indicating that the transaction has beenrejected.

Before, during, or after transmitting the transaction result to themerchant storefront 1302, the hash comparator 445 may store the seconddecline hash code in the hash data store 448 at (16). The hashcomparator 445 may store the second decline hash code in the hash datastore 448 instead of the hash contract because the hash comparator 445has determined that the user device 402 transmitted a decline hash codethat matches the second decline hash code. The second decline hash codemay replace any hash code (for example, hash contract or decline hashcode) that was previously stored in the hash data store 448 inassociation with the user operating the user device 402. Thus, the nexttime the user device 402 is provided with a transaction authorizationrequest, the hash generator 444 can retrieve and use the second declinehash code in generating a new hash contract and a new decline hash codefor determining whether the next transaction authorization request isapproved. As described herein, the previous hash code is not transmittedbetween the user device 402 and the contract authentication server 440during a current transaction authorization request. Accordingly, even ifa malicious device is able to intercept the other inputs to the hashfunction used to produce the decline hash code and determines the properorder for concatenating the inputs, the malicious device may still beprevented from successfully terminating the transaction because theprevious hash code may be unknown to the malicious device.

Optionally, not shown, the hash comparator 445 may store the firstdecline hash code in addition to the second decline hash code (forexample, in the hash data store 448). The first and second decline hashcodes may be stored for auditing or verification purposes. For example,the contract authentication server 440 may be requested by a user device402 at a later time to provide the decline hash code provided by theuser device 402 or another user device 402 at a previous time. Thecontract authentication server 440 can then retrieve the decline hashcode from the hash data store 448 and provide the retrieved decline hashcode to the user device 402 to satisfy the request. In some embodiments,the first decline hash code and/or the second decline hash code may beassociated with device metadata that indicates which device (user device402 or contract authentication server 440) generated the respectivedecline hash code. Thus, the contract authentication server 440 can usethe device metadata to identify a specific decline hash code generatedby a specific device and then retrieve the decline hash code from thehash data store 448.

FIGS. 17A-17B are block diagrams of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 when a credit card transaction isauthorized. For simplicity, several components, such as the merchantbank 1304 and/or the financial network system 1306, are excluded. Theembodiment depicted in FIGS. 17A-17B may be performed when the symmetrickey is a single-use key. As illustrated in FIG. 17A, a user pays for anitem or service with a credit card at (1). The user may pay with aphysical credit card at the merchant storefront 1302. Alternatively, theuser may pay with a credit card number instead of with the physicalcredit card via the credit card processing network gateway 1308 (notshown).

The merchant storefront 1302 can then transmit a transaction request tothe request generator 442 (for example, via the merchant bank 1304and/or the financial network system 1306) at (2). The transactionrequest may include transaction metadata, such as at least one of adate, an identification of one or more entities (for example, themerchant storefront 1302, a name of the entity that operates thecontract authentication server 440, a name of the user associated withthe user device 402, etc.), an amount (for example, zero or non-zero), alocation at which the transaction was initiated, an item correspondingto the transaction, terms and conditions, and/or the like.

Because the symmetric key is a single-use key, a new symmetric key mayneed to be generated in response to a new payment being attempted by theuser. Thus, the request generator 442 may transmit an instruction to thekey seeder 443 to generate a new symmetric key at (3). The instructionmay include some or all of the data included in the transaction request.The key seeder 443 may be instructed to generate the new symmetric keyregardless of whether the transaction amount is zero or non-zero. Therequest generator 442 can further transmit an authorization request tothe user device 402 at (4). The authorization request may include someor all of the data included in the transaction request. Theauthorization request may specifically be sent to the applicationretrieved from the application distribution server 440 that is runningon the user device 402.

In response to receiving the instruction to generate a new symmetrickey, the key seeder 443 may generate a new symmetric key at (5). The newsymmetric key may be based on some or all of the data included in thetransaction request, a master key, a previous symmetric key, and/or anycombination thereof. For example, the key seeder 443 may retrieve amaster key stored in the key data store 447 in association with the useroperating the user device 402 in order to generate the new symmetrickey. The key seeder 443 may then store the new symmetric key in the keydata store 443 at (6) in association with the user operating the userdevice 402. In an embodiment, the new symmetric key is stored in amanner such that the new symmetric key replaces a previously storedsymmetric key stored in association with the user operating the userdevice 402.

Likewise, the user device 402 (for example, the application) maygenerate a new symmetric key at (7). The new symmetric key generated bythe user device 402 may also be based on some or all of the dataincluded in the transaction request, a master key, a previous symmetrickey, and/or any combination thereof. For example, the user device 402may retrieve a master key stored in a secure location in order togenerate the new symmetric key. The user device 402 and the key seeder443 may use the same information when generating the new symmetric keys.In an embodiment, the new symmetric key is stored in a manner such thatthe new symmetric key replaces a previously generated symmetric key.

As illustrated in FIG. 17B, the request generator 442 can forward thetransaction request to the hash generator 444 at (8). The transactionrequest can be forwarded to the hash generator 444 at any time after therequest generator 442 receives the transaction request.

Reception of the authorization request may cause the user device 402(for example, the application) to prompt the user to accept or declinethe transaction corresponding to the credit card payment at step (1).The prompt may include information associated with the transaction, suchas the data provided in the authorization request. The user device 402may further prompt the user to provide one or more input(s) thatuniquely identify the user (for example, a multi-factor authenticationfactor, such as a fingerprint, a vein reading, an iris scan,face-recognition, a passcode, a single-use code, a key card, a digitalcertificate, a digital token, and/or any other item that represents abiological characteristic of the user, something that the user knows, orsomething that the user has). The user device 402 can convert theseinput(s) into an identity hash code to be used when generating a hashcontract or a decline hash code.

Here, the user accepts the transaction and therefore the user device 402receives an indication of an acceptance of the transaction at (9).Accordingly, the user device 402 generates a first hash contract at (10)using the contract elements (for example, as provided in theauthorization request), an identity value (for example, the identityhash code generated based on the input(s) that uniquely identify theuser), a symmetric key (for example, a previously used symmetric keygiven that the transaction amount is non-zero), a value representing anacceptance of the transaction, and/or a previous hash code (for example,a hash contract if the user device 402 generated a hash contract for aprevious transaction authorization request or a decline hash code if theuser device 402 generated a decline hash code for a previous transactionauthorization request). The user device 402 can then transmit the firsthash contract to the hash comparator 445 at (11).

Before, during, or after the user device 402 executes the operations togenerate the first hash contract, the hash generator 444 retrieves thenew symmetric key from the key data store 447 at (12). The hashgenerator 444 may also retrieve a previous hash code from the hash datastore 448 at (13). For example, the previous hash code is a hashcontract if the user device 402 generated a hash contract for a previoustransaction authorization request transmitted by the request generator442 and is a decline hash code if the user device 402 generated adecline hash code for a previous transaction authorization requesttransmitted by the request generator 442.

The hash generator 444 can then generate a second hash contract and adecline hash code at (14) using the retrieved data (for example, the newsymmetric key and/or the previous hash code), the contract elements (forexample, provided in the transaction request received from the requestgenerator 442, retrieved from the contract elements data store 449 (notshown) after the request generator 442 stores contract elements providedin the transaction request in the contract elements data store 449 inassociation with the user operating the user device 402, etc.), and/oran identity hash code retrieved from the user identity data store 446(not shown). For example, the identity hash code may be an identity hashcode initially provided by the user device 402 when the applicationrunning on the user device 402 is first installed or when a user isotherwise setting up the application. As described herein, the hashgenerator 444 may generate the second hash contract using a valuerepresenting an acceptance of the transaction and may generate thedecline hash code using a value representing a rejection of thetransaction. The hash generator 444 can then transmit the second hashcontract and the decline hash code to the hash comparator 445 at (15).

The hash comparator 445 can determine whether the transaction isapproved at (16) based on a comparison of the first hash contract withthe second hash contract and a comparison of the first hash contractwith the decline hash code. For example, here, the user device 402generated a hash contract instead of a decline hash code. Thus, if theuser provided the correct information when approving the transaction(for example, accurate values for the input(s) that uniquely representthe user such that the identity hash code generated by the user device402 matches the identity hash code stored in the user identity datastore 446 that was previously provided by the user device 402), then thehash comparator 445 determines that the transaction is approved.Otherwise, if the user did not provide the correct information whenapproving the transaction, the hash comparator 445 determines that anerror occurred and may suspend the user's account and/or notify the userdevice 402 of the issue. The hash comparator 445 can transmit thetransaction result (for example, an approval) to the merchant storefront1302 at (17), which results in the merchant storefront 1302 allowing thetransaction to be completed.

The merchant storefront 1302 may further forward the transaction resultto the user device 402 at (18). Reception of the transaction result maycause the user device 402 (for example, the application) to generate anddisplay a notification indicating that the transaction has beensuccessfully approved.

Before, during, or after transmitting the transaction result to themerchant storefront 1302, the hash comparator 445 may store the secondhash contract in the hash data store 448 at (19). The hash comparator445 may store the second hash contract in the hash data store 448instead of the decline hash code because the hash comparator 445 hasdetermined that the user device 402 transmitted a hash contract thatmatches the second hash contract. The second hash contract may replaceany hash code (for example, hash contract or decline hash code) that waspreviously stored in the hash data store 448 in association with theuser operating the user device 402. Thus, the next time the user device402 is provided with a transaction authorization request, the hashgenerator 444 can retrieve and use the second hash contract ingenerating a new hash contract and a new decline hash code fordetermining whether the next transaction authorization request isapproved. As described herein, the previous hash code is not transmittedbetween the user device 402 and the contract authentication server 440during a current transaction authorization request. Accordingly, even ifa malicious device is able to intercept the other inputs to the hashfunction used to produce the hash contract and determines the properorder for concatenating the inputs, the malicious device may still beprevented from successfully approving the transaction because theprevious hash code may be unknown to the malicious device.

Example Hash Contract Generation Routine Using an Authentication Hash

FIG. 18A is a flow diagram depicting a keyed identity hash generationroutine 1800 illustratively implemented by a user device, according toone embodiment. As an example, the user device 402 of FIG. 4 (forexample, the application retrieved from the application distributionserver 420) can be configured to execute the keyed identity hashgeneration routine 1800. The keyed identity hash generation routine 1800may be one routine of several routines used to generate anauthentication hash. The keyed identity hash generation routine 1800begins at block 1802.

At block 1804, a first user input corresponding to an identity of theuser is obtained. For example, the first user input may be afingerprint, a vein reading, an iris scan, face-recognition, a passcode,a single-use code, a key card, a digital certificate, a digital token,and/or any other item that represents a biological characteristic of theuser, something that the user knows, or something that the user has.

At block 1806, a second user input corresponding to an identity of theuser is obtained. For example, the second user input may be afingerprint, a vein reading, an iris scan, face-recognition, a passcode,a single-use code, a key card, a digital certificate, a digital token,and/or any other item that represents a biological characteristic of theuser, something that the user knows, or something that the user has. Thefirst user input and the second user input may be different.

At block 1808, the first user input is converted into a first value. Forexample, the user device 402 can convert the first user input into afirst value, which may be an alphanumeric value, a hexadecimal value, astring value, and/or the like. The user device 402 can retrieve mappinginformation that indicates how to convert the first user input into thefirst value.

At block 1810, the second user input is converted into a second value.For example, the user device 402 can convert the second user input intoa second value, which may be an alphanumeric value, a hexadecimal value,a string value, and/or the like. The user device 402 can retrievemapping information that indicates how to convert the second user inputinto the second value.

At block 1812, a hash of the first value and the second value isgenerated to form an identity hash (for example, an identity hash code).The identity hash can also be referred to as a hash identity. Forexample, the user device 402 can concatenate the first value and thesecond value in any order to form a string value and then apply a hashfunction to the string value to form the identity hash.

At block 1814, a hash of the identity hash and a key (for example, asingle-use code) is generated to form a keyed identity hash. Forexample, the single-use code may be the symmetric key described herein.Thus, the keyed identity hash may be formed using the identity hash anda key. The user device 402 can concatenate the identity hash and thesingle-use code in any order to form a string value and then apply ahash function to the string value to form the keyed identity hash. Oncethe keyed identity hash is formed, the keyed identity hash generationroutine 1800 is complete, as shown at block 1816.

While FIG. 18A depicts blocks 1804, 1806, 1808, and 1810 in a specificorder, this is merely an illustrative example and is not meant to belimiting. For example, block 1804 occurs before block 1808 and block1806 occurs before block 1810, but blocks 1804, 1806, 1808, and 1810 canotherwise be completed in any order.

In addition, blocks 1806, 1810, and/or 1814 may be optional. Forexample, the user device 402 can generate the identity hash by applyinga hash function to the first value only. Similarly, additional userinputs that uniquely represent the user may be obtained and convertedinto values to be used as inputs to the hash function that forms theidentity hash. As another example, the user device 402 can generate anidentity hash rather than a keyed identity hash and use the identityhash instead of the keyed identity hash in block 1856 described below.

Finally, while FIG. 18A depicts a hash function being applied to thefirst value and the second value, this is merely an illustrative exampleand is not meant to be limiting. In particular, any of the first valueand the second value can be hashed individually or in combination withother values derived from other user inputs (for example, other userinputs in addition to the first and second user inputs) before the hashfunction that generates the identity hash is applied. The resulting hashvalue(s) can then be hashed with any values that have not yet beenincluded as an input to a hash function to form another hash value (forexample, if at least one value has not been used as an input to a hashfunction) or the identity hash (for example, if all values have beenused as an input to a hash function). If another hash value is formed,then this hash value can be hashed with any values that have not yetbeen included as an input to a hash function to form another hash valueor the identity hash, and this process can continue until all valueshave been used as an input to a hash function. In an illustrativeexample, the user device 402 can apply a hash function to the firstvalue to form a first hash value and then apply a hash function to thefirst hash value and the second value to form the identity hash.

FIG. 18B is a flow diagram depicting an authentication hash generationroutine 1850 illustratively implemented by a user device, according toone embodiment. As an example, the user device 402 of FIG. 4 (forexample, the application retrieved from the application distributionserver 420) can be configured to execute the authentication hashgeneration routine 1850. The authentication hash generation routine 1850may follow the keyed identity hash generation routine 1800. Theauthentication hash generation routine 1850 begins at block 1852.

At block 1854, a hash of a key (for example, a single-use code) and aterminal identification is generated to form a keyed terminal hash. Forexample, the single-use code may be the symmetric key described herein.The terminal identification may be a value that uniquely represents theuser device 402. For example, the terminal identification may be a MACaddress of the user device 402, an IP address of the user device 402, aperipheral identification of the user device 402, or another value thatcan uniquely identify the user device 402. Use of the terminalidentification in forming the keyed terminal hash may be important insituations in which a user is attempting to use a user device 402 otherthan a user device 402 owned by the user. For example, the user may beattempting to use a kiosk or ATM owned by an entity with whom the useris engaging in a transaction. Use of the terminal identification mayensure that the user is using an authorized machine and not machineattempting to spoof an authorized machine. The user device 402 canconcatenate the single-use code and the terminal identification in anyorder to form a string value and then apply a hash function to thestring value to form the keyed terminal hash.

Alternatively, a hash of the terminal identification is generated toform a terminal hash at block 1854. In other words, a hash of asingle-use code in conjunction with the terminal identification isoptional.

At block 1856, a hash of the keyed terminal hash and the keyed identityhash formed by the keyed identity hash generation routine 1800 isgenerated to form the authentication hash. For example, the user device402 can concatenate the keyed terminal hash and the keyed identity hashin any order to form a string value and then apply a hash function tothe string value to form the authentication hash. Once theauthentication hash is formed, the authentication hash generationroutine 1850 is complete, as shown at block 1858.

Alternatively, instead of generating a hash of the keyed terminal hashand the keyed identity hash to form the authentication hash at block1856, a hash of a terminal hash and the keyed identity hash may begenerated to form the authentication hash at block 1856. As anotheralternative, a hash of a terminal hash and an identity hash may begenerated to form the authentication hash at block 1856. As anotheralternative, a hash of the keyed terminal hash and an identity hash maybe generated to form the authentication hash at block 1856.

In an embodiment, the authentication hash can replace the identity hashcode described herein. For example, instead of generating a hashcontract or a decline hash code using the identity hash code, the userdevice 402 and/or contract authentication server 440 may instead use theauthentication hash to generate a hash contract or a decline hash code.Thus, the contract authentication server 440 may store an authenticationhash instead of an identity hash code in the user identity data store446 for certain users and/or user devices 402.

FIG. 18C is a flow diagram depicting another hash contract generationroutine 1860 illustratively implemented by a user device or a contractauthentication server, according to one embodiment. As an example, theuser device 402 (for example, the application retrieved from theapplication distribution server 420) or the contract authenticationserver 440 of FIG. 4 can be configured to execute the hash contractgeneration routine 1860. The hash contract generation routine 1860 mayuse an authentication hash instead of an identity hash code to generatea hash contract. The hash contract generation routine 1860 begins atblock 1862.

At block 1864, a first contract element is obtained. For example, thefirst contract element may be terms and conditions, consideration, datarepresenting an acceptance (or a rejection), data representing anintent, a symmetric key, and/or a previous hash code.

At block 1866, a second contract element is obtained. For example, thesecond contract element may be terms and conditions, consideration, datarepresenting an acceptance (or a rejection), data representing anintent, a symmetric key, and/or a previous hash code. The first contractelement and the second contract element may be different.

At block 1868, an authentication hash is obtained. For example, theauthentication hash may be generated according to the keyed identityhash generation routine 1800 and the authentication hash generationroutine 1850. In part, the user device 402 may prompt a user, in a userinterface generated by the application retrieved from the applicationdistribution server 420, to provide one or more inputs that uniquelyrepresent the user. The prompt may be presented to the user when theuser device 402 receives a transaction authorization request. Forexample, such input can include a fingerprint, a vein reading, an irisscan, face-recognition, a passcode, a single-use code, a key card, adigital certificate, a digital token, and/or any other item thatrepresents a biological characteristic of the user, something that theuser knows, or something that the user has. The component(s) thatreceive the input(s) (for example, a fingerprint reader, a vein reader,an iris scanner, a camera, a key card reader, etc.) or the user device402 can then convert the input(s) into a second value, which may be analphanumeric value, a hexadecimal value, a string value, and/or thelike. For example, the component(s) or the user device 402 can retrievemapping information that indicates how to convert the input(s) into thesecond value. If more than one input is provided, the user device 402can concatenate the resulting second values to form a single secondvalue in a manner as described herein. The user device 402 may thenapply a hash function to the second value to form an input that resultsin the authentication hash.

The contract authentication server 440 may obtain the authenticationhash from the user device 402. For example, when the application runningon the user device 402 is first installed or when a user is otherwisesetting up the application, the user device 402 may generate theauthentication hash and transmit the authentication hash to the contractauthentication server 440. The contract authentication server 440 maythen store the authentication hash in the user identity data store 446and retrieve the authentication hash when generating the hash contract(or decline hash code). Note that the user device 402 may not store theauthentication hash. Rather, each time a transaction authorizationrequest is received, the user device 402 may prompt the user to provideone or more inputs that uniquely represent the user and the user device402 may perform the process described herein to generate a new copy ofthe authentication hash. Thus, if an unauthorized or malicious userattempts to authorize a transaction and cannot provide the one or moreinputs that uniquely represent the user, then the new copy of theauthentication hash generated by the user device 402 would not match theauthentication hash originally received by the contract authenticationserver 440 and the transaction authorization would ultimately fail (forexample, because the hash contract generated by the user device 402would not match the hash contract generated by the contractauthentication server 440 given that different inputs would be used byeach device in generating the hash contracts).

At block 1870, a hash of the first contract element, the second contractelement, and the authentication hash is generated to form a hashcontract. For example, the user device 402 or contract authenticationserver 440 may concatenate the first contract element, the secondcontract element, and the authentication hash in any order to form asingle string in a manner as described herein and apply a hash functionto the single string to form the hash contract. Once the hash contractis formed, the hash contract generation routine 1860 is complete, asshown at block 1872.

While FIG. 18C depicts blocks 1864, 1866, and 1868 in a specific order,this is merely an illustrative example and is not meant to be limiting.Blocks 1864, 1866, and 1868 can be completed in any order.

In addition, blocks 1866 may be optional. For example, the user device402 can generate the hash contract by applying a hash function to thefirst contract element and the authentication hash only. Similarly,additional contract elements may be obtained and used as inputs to thehash function that forms the hash contract.

Finally, while FIG. 18C depicts a hash function being applied to thefirst contract element, the second contract element, and theauthentication hash, this is merely an illustrative example and is notmeant to be limiting. In particular, any of the first contract element,the second contract element, and the authentication hash can be hashedindividually or in combination with other contract elements (forexample, where the contract elements are the first contract element, thesecond contract element, the authentication hash, etc.) before the hashfunction that generates the hash contract is applied. The resulting hashvalue(s) can then be hashed with any contract elements that have not yetbeen included as an input to a hash function to form another hash value(for example, if at least one contract element has not been used as aninput to a hash function) or the hash contract (for example, if allcontract elements have been used as an input to a hash function). Ifanother hash value is formed, then this hash value can be hashed withany contract elements that have not yet been included as an input to ahash function to form another hash value or the hash contract, and thisprocess can continue until all contract elements have been used as aninput to a hash function.

The routine 1860 depicted in FIG. 18C may also be executed by the userdevice 402 and/or the contract authentication server 440 when suchdevices generate a decline hash code. However, instead of obtaining avalue corresponding to a user input that indicates that a user acceptsthe terms and conditions and consideration, the user device 402 and/orcontract authentication server 440 may instead obtain a rejection valuecorresponding to a user input that indicates that a user rejects theterms and conditions and/or consideration.

Thus, the symmetric key may be used three times when generating a hashcontract or a decline hash code—once as an input to a hash function usedto generate the keyed identity hash, once as an input to a hash functionused to generate the authentication hash, and once as an input to a hashfunction used to generate the hash contract or decline hash code. Use ofthe symmetric key at different stages in the formation of a hashcontract or decline hash code may provide additional protection againstmalicious users attempting to spoof an authorized user. However, use ofthe symmetric key (for example, the single-use code) is optional suchthat the keyed identity hash, the authentication hash, and/or the hashcontract/decline hash code can be generated without using the symmetrickey.

In an embodiment, the identity hash and/or the authentication hash can,by themselves, be used to grant or deny a user and/or a user device 402access to resources of a system. For example, a user device 402 cangenerate an identity hash in a manner as described herein and a system(for example, the contract authentication server 440 and/or any othersystem that provides users access to resources, such as secure orconfidential content, data storage space, data processing capabilities,etc.) can compare the identity hash generated by the user device 402 toan identity hash previously received from the user device 402 (oranother user device 402 operated by the user). If the comparison yieldsa match, the system can grant the user or the user device 402 access tothe provided resource. If the comparison does not yield a match, thesystem can deny the user or the user device 402 access to the providedresource. Similarly, a user device 402 can generate an authenticationhash in a manner as described herein and a system can compare theauthentication hash generated by the user device 402 to anauthentication hash previously received from the user device 402 (oranother user device 402 operated by the user). If the comparison yieldsa match, the system can grant the user or the user device 402 access tothe provided resource. If the comparison does not yield a match, thesystem can deny the user or the user device 402 access to the providedresource.

Similarly, the identity hash and/or authentication hash can be used toaccess a physical place, to identify a person or validate that theperson's ID is real, in printed form, and/or as a barcode. For example,a user device 402 can transmit an identity hash and/or authenticationhash to an electronic lock on a door. The electronic lock can comparethe identity hash and/or authentication hash received from the userdevice 402 with an identity hash and/or authentication hash previouslyreceived from the user device 402 (or another user device 402 operatedby the user). If the comparison yields a match, the electronic lock canunlock the door. Otherwise, the electronic lock can lock the door ormaintain the door in the locked state. As another example, a user device402 or another electronic component can transmit an identity hash and/orauthentication hash to an authentication system. The transmission canoccur via a wireless network, via swiping a card (for example, an ID) ina card reader, via scanning the electronic component, etc. Theauthentication system can compare the identity hash and/orauthentication hash received from the user device 402 with an identityhash and/or authentication hash previously received from the user device402 (or another user device 402 operated by the user). If the comparisonyields a match, the authentication system can positively verify theidentity of a user and/or positively verify that the user's ID is real.As another example, a user device 402 can generate and cause theprinting of an identity hash and/or authentication hash, where theprinted version of the identity hash and/or authentication hash includesthe integers representing the identity hash and/or authentication hashvalue. As another example, a user device 402 or any other computingsystem (not shown) can generate a barcode using an identity hash and/orauthentication hash, where the barcode can be presented in a userinterface, printed on a document (for example, a passport) or label,etc. The user device 402 or other computing system can convert theidentity hash and/or authentication hash into an optical,machine-readable representation of the identity hash and/orauthentication hash to form the barcode. Alternatively or in addition,the user device 402 or other computing system can hash the identity hashand/or authentication hash and convert the hash into an optical,machine-readable representation of the hash to form the barcode(referred to herein as “a keyed barcode”). Alternatively or in addition,the user device 402 or other computing system can encrypt the identityhash and/or authentication hash (for example, using an encryption key)and convert the encrypted value into an optical, machine-readablerepresentation of the encrypted value to form the barcode.

Example Acceptance and Rejection of a Credit Report Release Request

FIG. 19A is a block diagram of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 to authorize the release of a creditreport. As illustrated in FIG. 19A, a user transmits a mortgageapplication to a mortgage company server 1902 at (1). For example, theuser may submit the mortgage application in person at a mortgage company(for example, a bank) and/or using the user device 402 (for example, byaccessing a network-accessible loan service).

The mortgage company server 1902 can then transmit a request for acredit report associated with the user to a credit reporting agencysystem (for example, represented as the contract authentication server440 here) at (2). The request may include credit report metadata, suchas at least one of a date, an identification of one or more entities(for example, the mortgage company server 1902, a name of the entitythat operates the contract authentication server 440, a name of the userassociated with the user device 402, information that uniquelyidentifies the user, etc.), an amount (for example, zero or non-zero), alocation at which the transaction was initiated, an item correspondingto the transaction (for example, a credit report, a mortgageapplication, etc.), terms and conditions, and/or the like.Alternatively, some or all of the credit report metadata may havepreviously been provided to the credit reporting agency system via aseparate agreement between the mortgage company and the credit reportingagency.

In response to receiving the request, the contract authentication server440 can transmit a credit report release request to the user device 402at (3). The credit report release request may be received by theapplication retrieved from the application distribution server 420 thatis running on the user device 402. Reception of the credit reportrelease request may cause the user device 402 (for example, theapplication) to prompt the user to accept or decline the credit reportrelease request corresponding to the mortgage application transmitted atstep (1). The prompt may include information associated with thetransaction, such as some or all of the credit report metadata includedin the credit report request transmitted by the mortgage company server1902. The user device 402 may further prompt the user to provide one ormore input(s) that uniquely identify the user (for example, amulti-factor authentication factor, such as a fingerprint, a veinreading, an iris scan, face-recognition, a passcode, a single-use code,a key card, a digital certificate, a digital token, and/or any otheritem that represents a biological characteristic of the user, somethingthat the user knows, or something that the user has). The user device402 can convert these input(s) into an identity hash code to be usedwhen generating a hash contract or a decline hash code.

If the user authorizes the release of the credit report, then the userdevice 402 generates a first hash contract at (4) in a manner asdescribed herein. The user device 402 can then transmit the first hashcontract to the contract authentication server 440 at (5).

Before, during, or after the user device 402 generates the first hashcontract, the contract authentication server 440 generates a second hashcontract and a decline hash code at (6). The contract authenticationserver 440 then determines whether the credit report release request isapproved based on a comparison of the first hash contract with thesecond hash contract and a comparison of the first hash contract withthe decline hash code at (7). Here, because the user approved therelease of the credit report, the first hash contract and the secondhash contract match and the first hash contract and the decline hashcode do not match. Thus, the contract authentication server 440determines that the credit report can be released. Accordingly, thecontract authentication server 440 retrieves the credit reportassociated with the user and transmits the credit report to the mortgagecompany server 1902 at (8). The mortgage company server 1902 may furthernotify the user device 402 that the release of the credit report wasapproved, not shown.

Note that other systems not shown in FIG. 19A may be present in theworkflow. For example, intermediary systems may be present between themortgage company server 1902 and the contract authentication server 440.

In other embodiments, not shown, the authorization of the release of thecredit report may occur in-band. For example, similar to FIGS. 14A-14B,the mortgage company server 1902 may request the user device 402 providean acceptance or rejection of the release of the credit report, the userdevice 402 may generate the first hash contract as a result and transmitthe first hash contract to the mortgage company server 1902, and themortgage company server 1902 may transmit the first hash contract to thecontract authentication server 440 for determining whether the creditreport can be released.

FIG. 19B is a block diagram of the hash contract generation andverification environment 400 of FIG. 4 illustrating the operationsperformed by the components of the hash contract generation andverification environment 400 to reject the release of a credit report.As illustrated in FIG. 19B, a user transmits a mortgage application to amortgage company server 1902 at (1). For example, the user may submitthe mortgage application in person at a mortgage company (for example, abank) and/or using the user device 402 (for example, by accessing anetwork-accessible loan service).

The mortgage company server 1902 can then transmit a request for acredit report associated with the user to a credit reporting agencysystem (for example, represented as the contract authentication server440 here) at (2). The request may include credit report metadata, suchas at least one of a date, an identification of one or more entities(for example, the mortgage company server 1902, a name of the entitythat operates the contract authentication server 440, a name of the userassociated with the user device 402, information that uniquelyidentifiers the user, etc.), an amount (for example, zero or non-zero),a location at which the transaction was initiated, an item correspondingto the transaction (for example, a credit report, a mortgageapplication, etc.), terms and conditions, and/or the like.

In response to receiving the request, the contract authentication server440 can transmit a credit report release request to the user device 402at (3). The credit report release request may be received by theapplication retrieved from the application distribution server 420 thatis running on the user device 402. Reception of the credit reportrelease request may cause the user device 402 (for example, theapplication) to prompt the user to accept or decline the credit reportrelease request corresponding to the mortgage application transmitted atstep (1). The prompt may include information associated with thetransaction, such as some or all of the credit report metadata includedin the credit report request transmitted by the mortgage company server1902. The user device 402 may further prompt the user to provide one ormore input(s) that uniquely identify the user (for example, amulti-factor authentication factor, such as a fingerprint, a veinreading, an iris scan, face-recognition, a passcode, a single-use code,a key card, a digital certificate, a digital token, and/or any otheritem that represents a biological characteristic of the user, somethingthat the user knows, or something that the user has). The user device402 can convert these input(s) into an identity hash code to be usedwhen generating a hash contract or a decline hash code.

If the user rejects the release of the credit report, then the userdevice 402 generates a first decline hash code at (4) in a manner asdescribed herein. The user device 402 can then transmit the firstdecline hash code to the contract authentication server 440 at (5).

Before, during, or after the user device 402 generates the first declinehash code, the contract authentication server 440 generates a hashcontract and a second decline hash code at (6). The contractauthentication server 440 then determines whether the credit reportrelease request is approved based on a comparison of the first declinehash code with the hash contract and a comparison of the first declinehash code with the second decline hash code at (7). Here, because theuser rejected the release of the credit report, the first decline hashcode and the hash contract do not match and the first decline hash codeand the second decline hash code match. Thus, the contractauthentication server 440 determines that the credit report cannot bereleased. Accordingly, the contract authentication server 440 transmitsa notification to the mortgage company server 1902 at (8) indicatingthat the credit report release request was denied. The mortgage companyserver 1902 may further notify the user device 402 that the release ofthe credit report was denied, not shown.

Note that other systems not shown in FIG. 19A may be present in theworkflow. For example, intermediary systems may be present between themortgage company server 1902 and the contract authentication server 440.

In other embodiments, not shown, the rejection of the release of thecredit report may occur in-band. For example, similar to FIGS. 14A-14B,the mortgage company server 1902 may request the user device 402 providean acceptance or rejection of the release of the credit report, the userdevice 402 may generate the first decline hash code as a result andtransmit the first decline hash code to the mortgage company server1902, and the mortgage company server 1902 may transmit the firstdecline hash code to the contract authentication server 440 fordetermining whether the credit report can be released.

Example Hash Contract Encryption and Decryption Routines

FIG. 20A is a flow diagram depicting a hash contract encryption routine2000 illustratively implemented by a user device, according to oneembodiment. As an example, the user device 402 of FIG. 4 (for example,the application retrieved from the application distribution server 420)can be configured to execute the hash contract encryption routine 2000.The hash contract encryption routine 2000 begins at block 2002.

At block 2004, a hash contract is generated. For example, the hashcontract may be generated in a manner as described herein.

At block 2006, the hash contract (and optionally any associatedmetadata) is encrypted using a private key associated with a sender toform a first encrypted hash contract. For example, the user device 402may encrypt the hash contract using a private key associated with theuser of the user device 402. Thus, the first encrypted hash contract maybe formed using two pieces of data that represent an intent of the userto accept an offer: (1) a data value representing an intent of the userto accept an offer that is used to form the hash contract (for example,based on an indication provided by the user that the user intends toaccept the offer); and (2) the private key. The device that eventuallyreceives an encrypted copy of the hash contract (for example, anotheruser device 402 or the contract authentication server 440) may have acopy of the public key associated with the user of the user device 402such that the encryption can be decrypted.

At block 2008, the first encrypted hash contract (and optionally anyassociated metadata) is encrypted using a public key associated with arecipient to form a second encrypted hash contract. For example, theuser device 402 may encrypt the first encrypted hash contract using apublic key associated with a device that will eventually receive anencrypted copy of the hash contract (for example, another user device402 or the contract authentication server 440) such that the firstencrypted hash contract is encrypted before transmission over thenetwork 410 occurs. Thus, the public key provides an additional layer ofprotection against malicious devices that may attempt to intercept thehash contract and/or spoof the user device 402.

At block 2010, the second encrypted hash contract is transmitted to acomputer device associated with the recipient. For example, the userdevice 402 can transmit the second encrypted hash contract to anotheruser device 402 and/or the contract authentication server 440. Once thesecond encrypted hash contract is transmitted, the hash contractencryption routine 2000 is complete, as shown at block 2012.

FIG. 20B is a flow diagram depicting a hash contract decryption routine2050 illustratively implemented by a user device or a contractauthentication server, according to one embodiment. As an example, theuser device 402 (for example, the application retrieved from theapplication distribution server 420) or the contract authenticationserver 440 of FIG. 4 can be configured to execute the hash contractdecryption routine 2050. The hash contract decryption routine 2050begins at block 2052.

At block 2054, a double encrypted hash contract is received. Forexample, the double encrypted hash contract may be an encrypted copy ofan encrypted copy of a hash contract.

At block 2056, the double encrypted hash contract (and optionally anyassociated metadata) is decrypted using a private key associated withthe recipient to form a single encrypted hash contract. For example, thesingle encrypted hash contract may be an encrypted copy of a hashcontract. The user device 402 may decrypt the double encrypted hashcontract using a private key associated with the user device 402 or thecontract authentication server 440 such that the encryption used toprotect the single encrypted hash contract from being accessed byunauthorized users during transmission over the network 410 is removed.

At block 2058, the single encrypted hash contract (and optionally anyassociated metadata) is decrypted using a public key associated with asender to form a hash contract. For example, the user device 402 orcontract authentication server 440 may decrypt the single encrypted hashcontract using a private key associated with the user of the user device402 that provided the double encrypted hash contract such that atestable hash contract can be accessed.

At block 2060, the hash contract is compared with a second hash contractgenerated by a computing device associated with the recipient toauthenticate the hash contract. For example, the user device 402 orcontract authentication server 440 may generate the second hashcontract. If the hash contract and the second hash contract match, thenthe user device 402 or contract authentication server 440 authenticatesthe hash contract by verifying that the terms and conditions and/orconsideration of an offer are unaltered and by verifying that the userthat accepted the hash contract is an authorized and/or expected user.Once the comparison is performed, the hash contract decryption routine2050 is complete, as shown at block 2062.

While FIGS. 20A-20B describe encryption using both a private key and apublic key and decryption using a corresponding public key and acorresponding private key, this is not meant to be limiting. Forexample, single encryption may be performed using the private key or thepublic key and corresponding single decryption may be performed usingthe corresponding public key or the corresponding private key,respectively. As another example, the hash contract may be single ordouble encrypted using symmetric keys.

Example Transaction Ledger in a User Interface

FIG. 21 illustrates an example user interface 2100 that may be display atransaction ledger 2120 in a window 2110. The user interface 2100 may berendered and displayed on the user device 402. For example, the userinterface 2100 may be rendered and/or displayed by the applicationretrieved from the application distribution server 420 that is runningon the user device 402.

As illustrated in FIG. 21, the transaction ledger 2120 includes severalrows and columns. For example, a first column may be an item numbercolumn, a second column may be a description column that identifies hashcontracts and associated tags, and a third column may be an amountcolumn. Each row may identify a particular transaction that has beenapproved or rejected. For example, a transaction may be identified by anitem number, a hash contract, a tag that indicates which hash functionwas used to generate the hash contract, and/or an amount.

In particular, in each row, a hash contract and an associated tag may bedisplayed within the description column and an amount corresponding tothe hash contract (for example, the consideration listed in an offerthat is agreed upon to from the hash contract) may be displayed in theamount column. As an illustrative example, item number 3 is a hashcontract 2122 that is represented by the hash code“9e4510df0d4b03eee4102568.” The hash code itself may represent a legallyenforceable contract, meaning that the actual contract represented bythe hash contract 2122 may not be needed in order to prove that two ormore parties have entered into an agreement. In addition, the hashcontract 2122 is appended to a tag 2124 that indicates that the hashcontract 2122 was formed using the MD5 hash function.

One of more of the hash contracts listed in the transaction ledger 2120may be selectable. For example, one or both of the hash contract 2122and the tag 2124 may be a link that, when selected, causes the userinterface 2100 to display a copy of the contract corresponding to thehash contract 2122 and/or tag 2124. Thus, the transaction ledger 2120may allow a user to view legally enforceable hash contracts and/or theactual documents that correspond to the legally enforceable hashcontracts.

ADDITIONAL EMBODIMENTS

While the present disclosure describes the contract authenticationserver 440 as comparing a hash code generated by a user device 402 withthe hash contract and decline hash code generated by the contractauthentication server 440, this is not meant to be limiting. Anothercomputing device may perform the comparison or a portion of thecomparison instead. For example, the contract authentication server 440may transmit a generated hash contract and/or decline hash code to auser device 402 and the user device 402 may perform the comparison withthe hash code generated by the user device 402. The user device 402 canthen transmit the results to the contract authentication server 440. Asanother example, the contract authentication server 440 may transmit agenerated hash contract and/or decline hash code to an external systemseparate from the user device 402 and contract authentication server440, not shown. The user device 402 or the contract authenticationserver 440 may also transmit the hash code generated by the user device402 to the external system. The external system may then perform thecomparison and provide the results to the contract authentication server440. As another example, the contract authentication server 440 canperform a portion of the comparison and the external system or the userdevice 402 can perform another portion of the comparison. As anillustrative example, the contract authentication server 440 can comparethe hash code generated by the user device 402 with the hash contractgenerated by the contract authentication server 440. The external systemor user device 402 can then compare the hash code generated by the userdevice 402 with the decline hash code generated by the contractauthentication server 440, with the results of this comparison beingprovided to the contract authentication server 440.

In addition, while the present disclosure describes that hash codes (forexample, hash contracts and/or decline hash codes) that are compared todetermine whether a contract is executed or a transaction is authorizedare generated by different computing devices, this is not meant to belimiting. For example, the same user device 402 or contractauthentication server 440 may generate both hash codes that are comparedto determine whether a contract is executed, a transaction isauthorized, etc.

Terminology

All of the methods and tasks described herein may be performed and fullyautomated by a computer system. The computer system may, in some cases,include multiple distinct computers or computing devices (for example,physical servers, workstations, storage arrays, cloud computingresources, etc.) that communicate and interoperate over a network toperform the described functions. Each such computing device typicallyincludes a processor (or multiple processors) that executes programinstructions or modules stored in a memory or other non-transitorycomputer-readable storage medium or device (for example, solid statestorage devices, disk drives, etc.). The various functions disclosedherein may be embodied in such program instructions, or may beimplemented in application-specific circuitry (for example, ASICs orFPGAs) of the computer system. Where the computer system includesmultiple computing devices, these devices may, but need not, beco-located. The results of the disclosed methods and tasks may bepersistently stored by transforming physical storage devices, such assolid state memory chips or magnetic disks, into a different state. Insome embodiments, the computer system may be a cloud-based computingsystem whose processing resources are shared by multiple distinctbusiness entities or other users.

Depending on the embodiment, certain acts, events, or functions of anyof the processes or algorithms described herein can be performed in adifferent sequence, can be added, merged, or left out altogether (forexample, not all described operations or events are necessary for thepractice of the algorithm). Moreover, in certain embodiments, operationsor events can be performed concurrently, for example, throughmulti-threaded processing, interrupt processing, or multiple processorsor processor cores or on other parallel architectures, rather thansequentially.

The various illustrative logical blocks, modules, routines, andalgorithm steps described in connection with the embodiments disclosedherein can be implemented as electronic hardware (for example, ASICs orFPGA devices), computer software that runs on computer hardware, orcombinations of both. Moreover, the various illustrative logical blocksand modules described in connection with the embodiments disclosedherein can be implemented or performed by a machine, such as a processordevice, a digital signal processor (DSP), an application specificintegrated circuit (ASIC), a field programmable gate array (FPGA) orother programmable logic device, discrete gate or transistor logic,discrete hardware components, or any combination thereof designed toperform the functions described herein. A processor device can be amicroprocessor, but in the alternative, the processor device can be acontroller, microcontroller, or state machine, combinations of the same,or the like. A processor device can include electrical circuitryconfigured to process computer-executable instructions. In anotherembodiment, a processor device includes an FPGA or other programmabledevice that performs logic operations without processingcomputer-executable instructions. A processor device can also beimplemented as a combination of computing devices, for example, acombination of a DSP and a microprocessor, a plurality ofmicroprocessors, one or more microprocessors in conjunction with a DSPcore, or any other such configuration. Although described hereinprimarily with respect to digital technology, a processor device mayalso include primarily analog components. For example, some or all ofthe rendering techniques described herein may be implemented in analogcircuitry or mixed analog and digital circuitry. A computing environmentcan include any type of computer system, including, but not limited to,a computer system based on a microprocessor, a mainframe computer, adigital signal processor, a portable computing device, a devicecontroller, or a computational engine within an appliance, to name afew.

The elements of a method, process, routine, or algorithm described inconnection with the embodiments disclosed herein can be embodieddirectly in hardware, in a software module executed by a processordevice, or in a combination of the two. A software module can reside inRAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory,registers, hard disk, a removable disk, a CD-ROM, or any other form of anon-transitory computer-readable storage medium. An exemplary storagemedium can be coupled to the processor device such that the processordevice can read information from, and write information to, the storagemedium. In the alternative, the storage medium can be integral to theprocessor device. The processor device and the storage medium can residein an ASIC. The ASIC can reside in a user terminal. In the alternative,the processor device and the storage medium can reside as discretecomponents in a user terminal.

Conditional language used herein, such as, among others, “can,” “could,”“might,” “may,” “e.g.,” “for example,” and the like, unless specificallystated otherwise, or otherwise understood within the context as used, isgenerally intended to convey that certain embodiments include, whileother embodiments do not include, certain features, elements or steps.Thus, such conditional language is not generally intended to imply thatfeatures, elements or steps are in any way required for one or moreembodiments or that one or more embodiments necessarily include logicfor deciding, with or without other input or prompting, whether thesefeatures, elements or steps are included or are to be performed in anyparticular embodiment. The terms “comprising,” “including,” “having,”and the like are synonymous and are used inclusively, in an open-endedfashion, and do not exclude additional elements, features, acts,operations, and so forth. Also, the term “or” is used in its inclusivesense (and not in its exclusive sense) so that when used, for example,to connect a list of elements, the term “or” means one, some, or all ofthe elements in the list.

Disjunctive language such as the phrase “at least one of X, Y, or Z,”unless specifically stated otherwise, is otherwise understood with thecontext as used in general to present that an item, term, etc., may beeither X, Y, or Z, or any combination thereof (for example, X, Y, or Z).Thus, such disjunctive language is not generally intended to, and shouldnot, imply that certain embodiments require at least one of X, at leastone of Y, and at least one of Z to each be present.

While the above detailed description has shown, described, and pointedout novel features as applied to various embodiments, it can beunderstood that various omissions, substitutions, and changes in theform and details of the devices or algorithms illustrated can be madewithout departing from the spirit of the disclosure. As can berecognized, certain embodiments described herein can be embodied withina form that does not provide all of the features and benefits set forthherein, as some features can be used or practiced separately fromothers. The scope of certain embodiments disclosed herein is indicatedby the appended claims rather than by the foregoing description. Allchanges which come within the meaning and range of equivalency of theclaims are to be embraced within their scope.

What is claimed is:
 1. A computer-generated, verifiable Hash Contract fixed on a non-transitory computer-readable medium, the Hash Contract comprising: a hash code generated based on a hash function, wherein the hash function, when executed, creates a binding agreement, wherein the hash code comprises the binding agreement, and wherein the hash code is structured in a manner such that a comparison of the hash code with a second, matching hash code results in authentication of the Hash Contract. 